Click here to Skip to main content
14,772,543 members
Home » Discussions » Visual Basic
   

Visual Basic

 
AnswerRe: visual basic Pin
Christian Graus30-Apr-07 23:22
protectorChristian Graus30-Apr-07 23:22 
Questionis call false?? Pin
alpdoruk30-Apr-07 22:40
Memberalpdoruk30-Apr-07 22:40 
AnswerRe: is call false?? Pin
Christian Graus30-Apr-07 23:21
protectorChristian Graus30-Apr-07 23:21 
GeneralRe: is call false?? Pin
alpdoruk30-Apr-07 23:25
Memberalpdoruk30-Apr-07 23:25 
GeneralRe: is call false?? Pin
Christian Graus30-Apr-07 23:32
protectorChristian Graus30-Apr-07 23:32 
GeneralRe: is call false?? Pin
alpdoruk30-Apr-07 23:37
Memberalpdoruk30-Apr-07 23:37 
GeneralRe: is call false?? Pin
Christian Graus30-Apr-07 23:56
protectorChristian Graus30-Apr-07 23:56 
GeneralRe: is call false?? Pin
Tom John1-May-07 3:10
MemberTom John1-May-07 3:10 
GeneralRe: is call false?? Pin
alpdoruk1-May-07 4:25
Memberalpdoruk1-May-07 4:25 
GeneralRe: is call false?? Pin
Tom John2-May-07 9:54
MemberTom John2-May-07 9:54 
GeneralRe: is call false?? Pin
ummoops2-May-07 14:04
Memberummoops2-May-07 14:04 
QuestionDHTML Editing Control - Table Property's? Pin
TimHot30-Apr-07 22:18
MemberTimHot30-Apr-07 22:18 
AnswerRe: DHTML Editing Control - Table Property's? Pin
Dave Kreskowiak1-May-07 4:50
mveDave Kreskowiak1-May-07 4:50 
GeneralRe: DHTML Editing Control - Table Property's? Pin
TimHot1-May-07 4:59
MemberTimHot1-May-07 4:59 
GeneralRe: DHTML Editing Control - Table Property's? Pin
Dave Kreskowiak1-May-07 5:41
mveDave Kreskowiak1-May-07 5:41 
GeneralRe: DHTML Editing Control - Table Property's? Pin
TimHot3-May-07 4:19
MemberTimHot3-May-07 4:19 
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

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.