Click here to Skip to main content
Rate this: bad
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 how can i check with without affecting the one another
Posted 5-Nov-12 20:09pm
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?
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 300
1 Peter Leow 180
2 ProgramFOX 145
3 DamithSL 140
4 Zoltán Zörgő 130
0 OriginalGriff 160
1 ProgramFOX 105
2 Sergey Alexandrovich Kryukov 60
3 Mehdi Gholam 50
4 DamithSL 50

Advertise | Privacy | Mobile
Web03 | 2.8.150224.1 | Last Updated 6 Nov 2012
Copyright © CodeProject, 1999-2015
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