Click here to Skip to main content
16,006,452 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Getting System Error &h80004002 Pin
Dave Kreskowiak23-Mar-04 1:45
mveDave Kreskowiak23-Mar-04 1:45 
GeneralRe: Getting System Error &h80004002 Pin
Vipin Bokariya24-Mar-04 20:03
Vipin Bokariya24-Mar-04 20:03 
GeneralRe: Getting System Error &h80004002 Pin
Dave Kreskowiak25-Mar-04 0:41
mveDave Kreskowiak25-Mar-04 0:41 
GeneralNetwork please! Pin
Guerven22-Mar-04 14:19
Guerven22-Mar-04 14:19 
GeneralRe: Network please! Pin
John Kuhn22-Mar-04 16:55
John Kuhn22-Mar-04 16:55 
GeneralRe: Network please! Pin
Dave Kreskowiak22-Mar-04 17:25
mveDave Kreskowiak22-Mar-04 17:25 
Generalplease help me! Pin
xstoneheartx22-Mar-04 12:01
xstoneheartx22-Mar-04 12:01 
GeneralRe: please help me! Pin
Nadroj22-Mar-04 12:10
Nadroj22-Mar-04 12:10 
if you want a click event to occur on more than one object, and it to perform the same code for each event, you must include an array handle. the following is a sample of how to have a click event for a checkbox,button, and label all do the same thing; change the state of the checkbox.

<code>    Private Sub MyHugeEvent(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click, Label1.Click
        If CheckBox1.Checked = True Then
            CheckBox1.Checked = False
        Else
            CheckBox1.Checked = True
        End If
    End Sub</code> 
note the end of the sub declaration line, after handles ("Handles Button1.click, label1.click") you can add more events for objects here for this code to be called once that event occurs.

edit: notice you dont have to include any event handler for the actual checkbox.checkedchange (or click) methods

------------------------
Jordan.
III
GeneralRe: please help me! Pin
xstoneheartx22-Mar-04 23:33
xstoneheartx22-Mar-04 23:33 
GeneralRe: please help me! Pin
Nadroj23-Mar-04 3:03
Nadroj23-Mar-04 3:03 
GeneralInvert Color Pin
xstoneheartx22-Mar-04 11:07
xstoneheartx22-Mar-04 11:07 
GeneralRe: Invert Color Pin
Christian Graus22-Mar-04 12:35
protectorChristian Graus22-Mar-04 12:35 
GeneralRe: Invert Color Pin
Nadroj22-Mar-04 14:02
Nadroj22-Mar-04 14:02 
GeneralRe: Invert Color Pin
Christian Graus22-Mar-04 15:04
protectorChristian Graus22-Mar-04 15:04 
GeneralRe: Invert Color Pin
Nadroj22-Mar-04 15:18
Nadroj22-Mar-04 15:18 
GeneralRe: Invert Color Pin
Guerven22-Mar-04 15:49
Guerven22-Mar-04 15:49 
GeneralRe: Invert Color Pin
xstoneheartx22-Mar-04 23:47
xstoneheartx22-Mar-04 23:47 
GeneralRe: Invert Color Pin
xstoneheartx23-Mar-04 1:57
xstoneheartx23-Mar-04 1:57 
GeneralVB.NET Clipboard Change Pin
jordan200022-Mar-04 5:36
jordan200022-Mar-04 5:36 
GeneralRe: VB.NET Clipboard Change Pin
Dave Kreskowiak23-Mar-04 2:08
mveDave Kreskowiak23-Mar-04 2:08 
GeneralRe: VB.NET Clipboard Change Pin
jordan200023-Mar-04 5:30
jordan200023-Mar-04 5:30 
GeneralRe: VB.NET Clipboard Change Pin
Dave Kreskowiak23-Mar-04 6:06
mveDave Kreskowiak23-Mar-04 6:06 
GeneralRe: VB.NET Clipboard Change Pin
Dave Kreskowiak23-Mar-04 6:23
mveDave Kreskowiak23-Mar-04 6:23 
GeneralDynaimic Context Menus With Icons and Text. Pin
EmanAli22-Mar-04 2:29
EmanAli22-Mar-04 2:29 
GeneralCreating The Real Ruler in vb.net like officeXp or WordPAd Pin
azeemgujjar21-Mar-04 23:52
azeemgujjar21-Mar-04 23:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.