RFID with 2 windows forms.

Supporting Visual Studio on Windows

RFID with 2 windows forms.

Postby masterchuy » Sun May 29, 2011 9:55 pm

Hi guys, im trying to work with a RFID reader, that reads different tags to open different forms, but I cant make the reader to work on the new forms.

I have my tag event:

void rfid_Tag(object sender, TagEventArgs e)
// rfid.close();
rfid.LED = true;

I cant close this rfid instace because it has a TagPresent, and on my form2, the reader doesnt work.

any ideas?

find attached my project.
RFID Forms Test.rar
My program.
(48.1 KiB) Downloaded 232 times

User avatar
Lead Developer
Posts: 3155
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada

Re: RFID with 2 windows forms.

Postby Patrick » Mon May 30, 2011 9:56 am

You probably don't want to block your tag event with a showDialog().

Also, you really want to share a single rfid object between both of your forms rather then opening a new object.



Re: RFID with 2 windows forms.

Postby masterchuy » Wed Jun 01, 2011 11:18 am

Im trying to use a single rfid object, but Im not quite sure how to do this, should I create a specific class for this ?, not sure how to handle the tag event on both forms, I hope u can help me



Return to “C#.NET”

Who is online

Users browsing this forum: No registered users and 2 guests