Click here to Skip to main content
15,898,222 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
Hai, I am coding in C# using visual studio 2010.

In my application i want a link between a text box in one form and radio button in another form.

Please send the code for it.

I want text Box must hold the selected value of radiobuttons.

In my application there are 3 radio buttons in one form.And these three must select automatically based on the values of textbox in another form.

for example textbox is for students marks and radio buttons for grades.If in textbox marks are above 70 then first radio button will automatically select(as A grade).or if marks or above 60 then second radio button will automatically select(as B grade). something like this...
Posted

I think you need to pass the values between your forms so please visit this answer and see the links how to do it:
Passing values to datagridview in another form c# windows application[^]

Good luck,
OI
 
Share this answer
 
You have to implement this logic in TextBox_TextChanged event. In this event, you have to check the value and make the radio button selected.
 
Share this answer
 
hi....according to my logic

first of all store the textbox values in one list.....and open another form on that on formload you glbally access that list ......and on that form use for loop and accesing list....that time check the vale of the textbox and give proper message by using radiobutton......


it will work
 
Share this answer
 

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