Click here to Skip to main content
13,047,502 members (59,160 online)
Rate this:
Please Sign up or sign in to 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
Posted 5-Nov-12 19:09pm
Milind Thakkar 6-Nov-12 1:15am
What error /exception it is throwing. We can't make guess really..
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 6 Nov 2012
Copyright © CodeProject, 1999-2017
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