c sharp Radio Buttons

In C# windows Form application Radio control is used to enable a user to select  a single Choice from available Group of choices. like all controls Radio button can be Drag & Drop  from tools box. consider the following Programing on a windows form user have 2 choices   but  user will have to select only one choice  I.e their Gender if he male male  this programm will show a mesage box with a message you are male if the she is female  select female radio button this will show her that you are female.




in above program the following C# Code  called on Click even of Click me Button.

  if (FemaleRb.Checked == true)
            {
                MessageBox.Show("You are female");

            }
            else MessageBox.Show("You are Male") ;


so when ever a User select any one of the choice a message box will be displayed

No comments:

Post a Comment

Sending SMS Via Windows Form Application Using any Android Smart Phone  Source Code  using System ; using System . C...