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 Sergey Alexandrovich Kryukov 434
1 Maciej Los 420
2 OriginalGriff 340
3 CHill60 240
4 Abhinav S 220
0 Sergey Alexandrovich Kryukov 10,102
1 OriginalGriff 9,495
2 Peter Leow 5,241
3 Kornfeld Eliyahu Peter 3,373
4 Maciej Los 3,076

Advertise | Privacy | Mobile
Web03 | 2.8.150327.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