Click here to Skip to main content
14,767,741 members
Home » Discussions » Visual Basic
   

Visual Basic

 
Questionvoice command performer Pin
sanket h modi30-Apr-07 22:02
Membersanket h modi30-Apr-07 22:02 
AnswerRe: voice command performer Pin
Dave Kreskowiak1-May-07 4:49
mveDave Kreskowiak1-May-07 4:49 
QuestionPop up on right click on the whole application window Pin
x86phre3x30-Apr-07 20:35
Memberx86phre3x30-Apr-07 20:35 
AnswerRe: Pop up on right click on the whole application window Pin
Christian Graus30-Apr-07 22:16
protectorChristian Graus30-Apr-07 22:16 
GeneralRe: Pop up on right click on the whole application window Pin
x86phre3x1-May-07 2:48
Memberx86phre3x1-May-07 2:48 
GeneralRe: Pop up on right click on the whole application window Pin
Christian Graus1-May-07 2:54
protectorChristian Graus1-May-07 2:54 
AnswerRe: Pop up on right click on the whole application window Pin
Tom John1-May-07 3:16
MemberTom John1-May-07 3:16 
GeneralRe: Pop up on right click on the whole application window Pin
x86phre3x1-May-07 21:41
Memberx86phre3x1-May-07 21:41 
GeneralRe: Pop up on right click on the whole application window Pin
Tom John2-May-07 9:48
MemberTom John2-May-07 9:48 
Just create an event handler to the same code for the MouseClick event of the control(s) in question:

<br />
Private Sub MyControls_MouseClick(sender As Object, e As MouseEventArgs) _    <br />
     Handles MyPictureBox.MouseClick, _<br />
             MyLabel.MouseClick, etc, etc<br />
<br />
     If e.Button = Windows.Forms.MouseButtons.Right Then<br />
             MessageBox.Show("You clicked the form with the right mouse button!", "My Application")<br />
<br />
     End If<br />
<br />
End Sub<br />


An easy way to do this is select the control in the desiger, open the property grid for it (F4), click the events button at the top (the one with the lightning bolt on it) and double click the event you want to create the handler for. This will create the code stub for the event handler automatically.

Cheers

Tom
Questionhow to set a corresponding color on a particular cell? Pin
moomoooomoo30-Apr-07 18:24
Membermoomoooomoo30-Apr-07 18:24 
AnswerRe: how to set a corresponding color on a particular cell? Pin
ChandraRam30-Apr-07 23:51
MemberChandraRam30-Apr-07 23:51 
GeneralRe: how to set a corresponding color on a particular cell? Pin
moomoooomoo1-May-07 0:59
Membermoomoooomoo1-May-07 0:59 
GeneralRe: how to set a corresponding color on a particular cell? Pin
Tom John1-May-07 3:21
MemberTom John1-May-07 3:21 
GeneralRe: how to set a corresponding color on a particular cell? Pin
ChandraRam1-May-07 22:46
MemberChandraRam1-May-07 22:46 
GeneralRe: how to set a corresponding color on a particular cell? Pin
moomoooomoo2-May-07 0:23
Membermoomoooomoo2-May-07 0:23 
AnswerRe: how to set a corresponding color on a particular cell? Pin
Dave Kreskowiak1-May-07 4:41
mveDave Kreskowiak1-May-07 4:41 
QuestionGet the time of the last event fired by an application Pin
Polymorpher30-Apr-07 13:06
MemberPolymorpher30-Apr-07 13:06 
AnswerRe: Get the time of the last event fired by an application Pin
Christian Graus30-Apr-07 13:08
protectorChristian Graus30-Apr-07 13:08 
GeneralRe: Get the time of the last event fired by an application Pin
Polymorpher30-Apr-07 13:11
MemberPolymorpher30-Apr-07 13:11 
GeneralRe: Get the time of the last event fired by an application Pin
Dave Kreskowiak30-Apr-07 13:25
mveDave Kreskowiak30-Apr-07 13:25 
GeneralRe: Get the time of the last event fired by an application Pin
Polymorpher30-Apr-07 13:28
MemberPolymorpher30-Apr-07 13:28 
GeneralRe: Get the time of the last event fired by an application Pin
Polymorpher30-Apr-07 13:30
MemberPolymorpher30-Apr-07 13:30 
GeneralRe: Get the time of the last event fired by an application Pin
Dave Kreskowiak30-Apr-07 13:34
mveDave Kreskowiak30-Apr-07 13:34 
GeneralRe: Get the time of the last event fired by an application Pin
Polymorpher30-Apr-07 13:43
MemberPolymorpher30-Apr-07 13:43 
GeneralRe: Get the time of the last event fired by an application Pin
Polymorpher30-Apr-07 14:09
MemberPolymorpher30-Apr-07 14:09 

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.