Click here to Skip to main content
15,916,945 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Determining what components of Microsoft Office are installed Pin
Pixa16-Jul-06 3:26
Pixa16-Jul-06 3:26 
QuestionIs there a Sleep/Pause/Timeout function Pin
John Waclawski15-Jul-06 9:49
John Waclawski15-Jul-06 9:49 
AnswerRe: Is there a Sleep/Pause/Timeout function Pin
Ed.Poore15-Jul-06 13:12
Ed.Poore15-Jul-06 13:12 
GeneralRe: Is there a Sleep/Pause/Timeout function Pin
John Waclawski15-Jul-06 17:50
John Waclawski15-Jul-06 17:50 
QuestionConvert Excel Table to Access Pin
Tomic15-Jul-06 7:46
Tomic15-Jul-06 7:46 
AnswerRe: Convert Excel Table to Access Pin
Ed.Poore15-Jul-06 13:16
Ed.Poore15-Jul-06 13:16 
QuestionHooking the Mouse Pin
AndrewVos15-Jul-06 4:20
AndrewVos15-Jul-06 4:20 
AnswerRe: Hooking the Mouse Pin
Keith Malwitz16-Jul-06 19:07
Keith Malwitz16-Jul-06 19:07 
The easiest way would be to handle the click event and check the state of the buttons inside the event. The following will close the form if both buttons are depressed:

Private Sub Form1_MouseClick(ByVal sender As Object, ByVal e _<br />
       As System.Windows.Forms.MouseEventArgs) Handles Me.MouseClick<br />
    If e.Button = Windows.Forms.MouseButtons.Left Then<br />
        If MouseButtons = Windows.Forms.MouseButtons.Right Then<br />
            Me.Close()<br />
        End If<br />
    End If<br />
    If e.Button = Windows.Forms.MouseButtons.Right Then<br />
        If MouseButtons = Windows.Forms.MouseButtons.Left Then<br />
            Me.Close()<br />
        End If<br />
    End If<br />
End Sub<br />


Hope this helps.

Keith
GeneralRe: Hooking the Mouse Pin
AndrewVos16-Jul-06 19:17
AndrewVos16-Jul-06 19:17 
QuestionSaving user inputs for later use Pin
Almerica15-Jul-06 1:49
Almerica15-Jul-06 1:49 
AnswerRe: Saving user inputs for later use Pin
Ed.Poore15-Jul-06 13:19
Ed.Poore15-Jul-06 13:19 
AnswerRe: Saving user inputs for later use Pin
Werries17-Jul-06 9:14
Werries17-Jul-06 9:14 
QuestionWhat is an XML editor? Pin
szevy_suez15-Jul-06 0:50
szevy_suez15-Jul-06 0:50 
AnswerRe: What is an XML editor? [modified] Pin
giddy_guitarist15-Jul-06 8:02
giddy_guitarist15-Jul-06 8:02 
AnswerRe: What is an XML editor? Pin
giddy_guitarist15-Jul-06 20:59
giddy_guitarist15-Jul-06 20:59 
QuestionTrouble with combobox in DataGrid Pin
fiaolle14-Jul-06 23:29
fiaolle14-Jul-06 23:29 
QuestionDataGrid Pin
Amarni14-Jul-06 22:40
Amarni14-Jul-06 22:40 
AnswerRe: DataGrid Pin
RookieThomas14-Jul-06 23:30
RookieThomas14-Jul-06 23:30 
QuestionMove Form Pin
Socheat.Net14-Jul-06 15:59
Socheat.Net14-Jul-06 15:59 
AnswerRe: Move Form Pin
Dave Kreskowiak14-Jul-06 16:28
mveDave Kreskowiak14-Jul-06 16:28 
AnswerRe: Move Form Pin
The ANZAC14-Jul-06 16:51
The ANZAC14-Jul-06 16:51 
GeneralRe: Move Form Pin
The ANZAC15-Jul-06 18:35
The ANZAC15-Jul-06 18:35 
GeneralRe: Move Form Pin
Dave Kreskowiak16-Jul-06 1:42
mveDave Kreskowiak16-Jul-06 1:42 
QuestionRunning Executables Pin
The ANZAC14-Jul-06 12:47
The ANZAC14-Jul-06 12:47 
AnswerRe: Running Executables Pin
Jun Du14-Jul-06 14:39
Jun Du14-Jul-06 14: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.