I have a class named testForm.cs in package com.controller.smart
And i have used two radio buttons in another class ProdForm.cs in com.controller.main
Now based on 2nd radio button is selected or not i have to display the Form. I need to get the value of radio button(whether it is checked or not in TestForm.cs)
I have used "using com.controller.main"
but I am not able to get the value of radiobutton(checked or not) in testForm.cs.How to get that?
How to retrieve the value of radio button (checked/unchecked) from another class
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

none64 reputationPosted May 5, 2010, 1:53 AM EDT
public bool Cheched
{ get { return this.YourRadioButton.Checked; } }
CrishRank #1,487 · 1.1K reputationPosted May 5, 2010, 3:10 AM EDT
create public class on this .CS file and use get set method for getting value.
thanks