Click here to Skip to main content
15,887,027 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: voice command performer Pin
Dave Kreskowiak1-May-07 3:49
mveDave Kreskowiak1-May-07 3:49 
QuestionPop up on right click on the whole application window Pin
x86phre3x30-Apr-07 19:35
x86phre3x30-Apr-07 19:35 
AnswerRe: Pop up on right click on the whole application window Pin
Christian Graus30-Apr-07 21:16
protectorChristian Graus30-Apr-07 21:16 
GeneralRe: Pop up on right click on the whole application window Pin
x86phre3x1-May-07 1:48
x86phre3x1-May-07 1:48 
GeneralRe: Pop up on right click on the whole application window Pin
Christian Graus1-May-07 1:54
protectorChristian Graus1-May-07 1:54 
AnswerRe: Pop up on right click on the whole application window Pin
Tom John1-May-07 2:16
Tom John1-May-07 2:16 
GeneralRe: Pop up on right click on the whole application window Pin
x86phre3x1-May-07 20:41
x86phre3x1-May-07 20:41 
GeneralRe: Pop up on right click on the whole application window Pin
Tom John2-May-07 8:48
Tom John2-May-07 8: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 17:24
moomoooomoo30-Apr-07 17:24 
AnswerRe: how to set a corresponding color on a particular cell? Pin
ChandraRam30-Apr-07 22:51
ChandraRam30-Apr-07 22:51 
GeneralRe: how to set a corresponding color on a particular cell? Pin
moomoooomoo30-Apr-07 23:59
moomoooomoo30-Apr-07 23:59 
GeneralRe: how to set a corresponding color on a particular cell? Pin
Tom John1-May-07 2:21
Tom John1-May-07 2:21 
GeneralRe: how to set a corresponding color on a particular cell? Pin
ChandraRam1-May-07 21:46
ChandraRam1-May-07 21:46 
GeneralRe: how to set a corresponding color on a particular cell? Pin
moomoooomoo1-May-07 23:23
moomoooomoo1-May-07 23:23 
AnswerRe: how to set a corresponding color on a particular cell? Pin
Dave Kreskowiak1-May-07 3:41
mveDave Kreskowiak1-May-07 3:41 
QuestionGet the time of the last event fired by an application Pin
Polymorpher30-Apr-07 12:06
Polymorpher30-Apr-07 12:06 
AnswerRe: Get the time of the last event fired by an application Pin
Christian Graus30-Apr-07 12:08
protectorChristian Graus30-Apr-07 12:08 
GeneralRe: Get the time of the last event fired by an application Pin
Polymorpher30-Apr-07 12:11
Polymorpher30-Apr-07 12:11 
GeneralRe: Get the time of the last event fired by an application Pin
Dave Kreskowiak30-Apr-07 12:25
mveDave Kreskowiak30-Apr-07 12:25 
GeneralRe: Get the time of the last event fired by an application Pin
Polymorpher30-Apr-07 12:28
Polymorpher30-Apr-07 12:28 
GeneralRe: Get the time of the last event fired by an application Pin
Polymorpher30-Apr-07 12:30
Polymorpher30-Apr-07 12:30 
GeneralRe: Get the time of the last event fired by an application Pin
Dave Kreskowiak30-Apr-07 12:34
mveDave Kreskowiak30-Apr-07 12:34 
GeneralRe: Get the time of the last event fired by an application Pin
Polymorpher30-Apr-07 12:43
Polymorpher30-Apr-07 12:43 
GeneralRe: Get the time of the last event fired by an application Pin
Polymorpher30-Apr-07 13:09
Polymorpher30-Apr-07 13:09 
QuestionAdd icons to project Pin
Manfr3d30-Apr-07 10:39
Manfr3d30-Apr-07 10:39 

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.