Click here to Skip to main content
15,666,947 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi friends
I am developing window application.(patient details) In that It contains two radio button.and other controls.Fisrt radiobutton is called Existing patient. second radiobutton is called new patient. If I click first radiobutton then i need to enter only patient number to the textbox1. in the textbox1 leave event I bind data from database to other patient details. If i click second radiobutton then i need to enter all the data to patientdetails and save it. I completed this successfully. but the problem arise at when i click radiobutton1(existing patient)wrongly for new patient(radiobutton2) then I just click correct radiobutton(radiobutton2).here event for radiobutton1 occur.and make error.,same for vice how can i check with without affecting the one another
MT_ 6-Nov-12 1:15am    
What error /exception it is throwing. We can't make guess really..
Sergey Alexandrovich Kryukov 6-Nov-12 1:16am    
To start with, rename radiobutton1 to radioButtonExistingPatient, radioButton2 to radioButtonNewPatient, etc., and never eve use auto-generated names ever since. You even have problems to explain all that because of this naming. What's do you think the refactorization engine for?
Rajesh Kariyavula 6-Nov-12 1:20am    
What are you doing in radio button event and what is the error that you are getting?

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