Right click event?need help with right click event
Page 1 of 1
8 Replies - 19899 Views - Last Post: 22 March 2009 - 03:00 PM
#1
Right click event?
Posted 16 March 2009 - 03:58 PM
Replies To: Right click event?
#2
Re: Right click event?
Posted 16 March 2009 - 04:00 PM
#3
Re: Right click event?
Posted 16 March 2009 - 04:11 PM
AdamSpeight2008, on 16 Mar, 2009 - 03:00 PM, said:
sorry.. i´m really new at this stuff.. like started last tuesday
i think i got the "mouse event" part.. but not the "what information the pass to you in the e
do you mean like
Public sub Mouseright_clickor something?
This post has been edited by EndLessMind: 16 March 2009 - 04:14 PM
#4
Re: Right click event?
Posted 16 March 2009 - 04:17 PM
Private Sub Form1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseClick e. End Sub
#5
Re: Right click event?
Posted 16 March 2009 - 04:22 PM
AdamSpeight2008, on 16 Mar, 2009 - 03:17 PM, said:
Private Sub Form1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseClick e. End Sub
okey.. and parameter stands for page rake meter? or? anyway.. what should i put after the e.?
#6
Re: Right click event?
Posted 16 March 2009 - 07:38 PM
ByVal e As System.Windows.Forms.MouseEventArgs
e is the Mouse Event Arguements that are being passed to your Sub.
If you type e. into Visual Studio it should give you a list of things that you can use to complete whatever you are trying to do.
This post has been edited by MrWobbles: 16 March 2009 - 07:39 PM
#7
Re: Right click event?
Posted 16 March 2009 - 11:17 PM
MrWobbles, on 16 Mar, 2009 - 06:38 PM, said:
ByVal e As System.Windows.Forms.MouseEventArgs
e is the Mouse Event Arguements that are being passed to your Sub.
If you type e. into Visual Studio it should give you a list of things that you can use to complete whatever you are trying to do.
well.. i got that code already. do you mean that i should type some thing like this? :
Private Sub Form1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseClick Windows.Forms.MouseButtons.Right() End Sub
This post has been edited by EndLessMind: 16 March 2009 - 11:20 PM
#8
Re: Right click event?
Posted 20 March 2009 - 06:08 PM
EndLessMind, on 16 Mar, 2009 - 10:17 PM, said:
MrWobbles, on 16 Mar, 2009 - 06:38 PM, said:
ByVal e As System.Windows.Forms.MouseEventArgs
e is the Mouse Event Arguements that are being passed to your Sub.
If you type e. into Visual Studio it should give you a list of things that you can use to complete whatever you are trying to do.
well.. i got that code already. do you mean that i should type some thing like this? :
Private Sub Form1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseClick Windows.Forms.MouseButtons.Right() End Sub
Think it should be something more like
Private Sub Form1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseClick If (e.Button = Windows.Forms.MouseButtons.Right) Then 'do whatever it is your trying to do here End If End Sub
Other than that... If your using the standard WebBrowser control provided with the framework right clicking on a link in a webpage should provide the normal context menu available within IE. Including the "Save Target As" option.
#9
Re: Right click event?
Posted 22 March 2009 - 03:00 PM
Arazons, on 20 Mar, 2009 - 05:08 PM, said:
EndLessMind, on 16 Mar, 2009 - 10:17 PM, said:
MrWobbles, on 16 Mar, 2009 - 06:38 PM, said:
ByVal e As System.Windows.Forms.MouseEventArgs
e is the Mouse Event Arguements that are being passed to your Sub.
If you type e. into Visual Studio it should give you a list of things that you can use to complete whatever you are trying to do.
well.. i got that code already. do you mean that i should type some thing like this? :
Private Sub Form1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseClick Windows.Forms.MouseButtons.Right() End Sub
Think it should be something more like
Private Sub Form1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseClick If (e.Button = Windows.Forms.MouseButtons.Right) Then 'do whatever it is your trying to do here End If End Sub
Other than that... If your using the standard WebBrowser control provided with the framework right clicking on a link in a webpage should provide the normal context menu available within IE. Including the "Save Target As" option.
i cant get it to work =S
|
|

New Topic/Question
Reply




MultiQuote





|