It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

Connecting a button to a checkbox

Moderator: dafunkymunky

Connecting a button to a checkbox

Postby xiireeceiix on Wed Dec 08, 2010 1:46 pm

When i click on my button i want a tick to appear in the check box, how can i do this ??

im a bit of a novice :P
xiireeceiix
 
Posts: 1
Joined: Wed Dec 08, 2010 1:43 pm

Re: Connecting a button to a checkbox

Postby tommys on Wed Dec 08, 2010 5:57 pm

I don't know VB but know other languages, so do you need this?
Code: Select all
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        CheckBox1.Checked = True
    End Sub
End Class
tommys
 
Posts: 13
Joined: Thu Dec 02, 2010 5:23 pm


Who is online

Users browsing this forum: No registered users and 1 guest