Click here to Skip to main content
15,893,381 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

am developing attendance project.

form1: is having menustrip(student_IN,student_out), when i click on Student_in , another form will be opened , then swipe the card,get the card_id into textbox of opened form student information form.

am writing a method for getting data from serialport instead of dataReceived event.so where can i call that method (method contains the data received from serialport) to display data into the opened form's textbox.

any idea
Posted

1 solution

You wouldn't use an event on the TextBox. You use the event on the serial port and when you receive data there you then decide what to do. It shouldn't be dependent on your textbox.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900