Results 1 to 3 of 3

Thread: radiobutton in a groupbox

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2008
    Posts
    103

    radiobutton in a groupbox

    i have two radiobutton in a groupbox
    while retriving record from ms-access i need to display the rodiobutton as checked.
    please help me

  2. #2
    Member
    Join Date
    Apr 2010
    Posts
    52

    Re: radiobutton in a groupbox

    http://www.homeandlearn.co.uk/net/nets4p15.html

    Go read that and stop posting thread after thread about the same subject.

  3. #3
    Fanatic Member EntityX's Avatar
    Join Date
    Feb 2007
    Location
    Omnipresence
    Posts
    798

    Re: radiobutton in a groupbox

    If you want to set a radio button to the checked state :

    Code:
     RadioButton1.Checked = True ' or set to False if you want it unchecked.
    If you want to perform some action when the condition of a radiobutton changes :

    Code:
       Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged
            If RadioButton1.Checked = True Then
                ' Code performed when checked
            Else
                ' Code performed when not checked. 
            End If
     
        End Sub
    Make as many mistakes as you can as quickly as you can. We want to make sure that we make a great enough number of mistakes in a given amount of time so that we can be successful.

    "Persistence is the magic of success." Paramahansa Yogananda

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width