c# - How can I access a Radio Button in another form? -


i want see if notch50hzbutton checked in form, like: if (settingsform.notch50hzbutton.checked == true) ..... how can this?

namespace classlibrary1  {     using graficdisplay;     using graphlib;     using precisiontimer;       public partial class settingsform : form     {          public settingsform()         {             initializecomponent();             notch50hzbutton.checked = false;             notch60hzbutton.checked = true;          }          private void notch50hz_checked(object sender, eventargs e)         {             notch50hzbutton.checked = true;         }          private void notch60hz_checked(object sender, eventargs e)         {             notch60hzbutton.checked = true;         }     }   } 

 public bool notch50hzischecked  {    { return notch50hzbutton.checked; }    set { notch50hzbutton.checked = value; } } 

you may access regular property outside class.


Comments