Right click event?

need help with right click event

Page 1 of 1

8 Replies - 31756 Views - Last Post: 22 March 2009 - 03:00 PM Rate Topic: -----

#1 EndLessMind  Icon User is offline

  • These are the droids you're looking for
  • member icon

Reputation: 194
  • View blog
  • Posts: 1,099
  • Joined: 13-March 09

Right click event?

Posted 16 March 2009 - 03:58 PM

i have a tabbed browser and i have now finaly got the downloader with progress bar to work.. or kind of. whet this is that i need to add the accurate adress or else i cant download the specific file. so now o wonder if there is some kind of right click event that i can use like this " right click on lets say a mp3 file and then click "save target as" and then the downloader will open and the adress will automatic be added. or some think like that.. is this possible?

Is This A Good Question/Topic? 0
  • +

Replies To: Right click event?

#2 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2263
  • View blog
  • Posts: 9,467
  • Joined: 29-May 08

Re: Right click event?

Posted 16 March 2009 - 04:00 PM

Have a look at the various mouse events and what information they pass to you in the e
Was This Post Helpful? 0
  • +
  • -

#3 EndLessMind  Icon User is offline

  • These are the droids you're looking for
  • member icon

Reputation: 194
  • View blog
  • Posts: 1,099
  • Joined: 13-March 09

Re: Right click event?

Posted 16 March 2009 - 04:11 PM

View PostAdamSpeight2008, on 16 Mar, 2009 - 03:00 PM, said:

Have a look at the various mouse events and what information they pass to you in the e

sorry.. im 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_click
or something?

This post has been edited by EndLessMind: 16 March 2009 - 04:14 PM

Was This Post Helpful? 0
  • +
  • -

#4 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2263
  • View blog
  • Posts: 9,467
  • Joined: 29-May 08

Re: Right click event?

Posted 16 March 2009 - 04:17 PM

The e is the parameter.
 Private Sub Form1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseClick
  e.
 End Sub


Was This Post Helpful? 0
  • +
  • -

#5 EndLessMind  Icon User is offline

  • These are the droids you're looking for
  • member icon

Reputation: 194
  • View blog
  • Posts: 1,099
  • Joined: 13-March 09

Re: Right click event?

Posted 16 March 2009 - 04:22 PM

View PostAdamSpeight2008, on 16 Mar, 2009 - 03:17 PM, said:

The e is the parameter.
 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.?
Was This Post Helpful? 0
  • +
  • -

#6 MrWobbles  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 31
  • View blog
  • Posts: 328
  • Joined: 11-April 08

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

Was This Post Helpful? 0
  • +
  • -

#7 EndLessMind  Icon User is offline

  • These are the droids you're looking for
  • member icon

Reputation: 194
  • View blog
  • Posts: 1,099
  • Joined: 13-March 09

Re: Right click event?

Posted 16 March 2009 - 11:17 PM

View PostMrWobbles, 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

Was This Post Helpful? 0
  • +
  • -

#8 Arazons  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 1
  • View blog
  • Posts: 79
  • Joined: 18-March 09

Re: Right click event?

Posted 20 March 2009 - 06:08 PM

View PostEndLessMind, on 16 Mar, 2009 - 10:17 PM, said:

View PostMrWobbles, 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.
Was This Post Helpful? 0
  • +
  • -

#9 EndLessMind  Icon User is offline

  • These are the droids you're looking for
  • member icon

Reputation: 194
  • View blog
  • Posts: 1,099
  • Joined: 13-March 09

Re: Right click event?

Posted 22 March 2009 - 03:00 PM

View PostArazons, on 20 Mar, 2009 - 05:08 PM, said:

View PostEndLessMind, on 16 Mar, 2009 - 10:17 PM, said:

View PostMrWobbles, 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
Was This Post Helpful? 1

Page 1 of 1