Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0
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 versa.so how can i check with without affecting the one another
Posted 5-Nov-12 20:09pm
Comments
Milind Thakkar at 6-Nov-12 1:15am
   
What error /exception it is throwing. We can't make guess really..
Sergey Alexandrovich Kryukov at 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?
--SA
Rajesh Kariyavula at 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)

  Print Answers RSS
0 OriginalGriff 365
1 Sergey Alexandrovich Kryukov 319
2 CPallini 275
3 DamithSL 214
4 Maciej Los 185
0 OriginalGriff 5,455
1 DamithSL 4,457
2 Maciej Los 3,885
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,115


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 6 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100