how do i do a right click on a button. I have seen poeple do something like this
if button2 = true or something like this . How do i do this
Printable View
how do i do a right click on a button. I have seen poeple do something like this
if button2 = true or something like this . How do i do this
you almost have it :
Code:Private Sub Form_MouseUp(Button As Integer,Shift As Integer, X As Single, Y As Single)
If Button = 2 Then
MsgBox "Right Button"
End If
End Sub
You can replace the 2, with the constant vbRightButton...Either way is find, though.
is this a good way my friend just told me it.
Code:Private Sub Command3_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbRightButton Then
msgbox "Right button pressed on button 3"
end if
end sub
it is good to use constants, in case something changes in a new release or something, I was just typing fast :)
hehe :D i guess you beat me too it thanks guys your life savers
that'll do it...Quote:
Originally posted by JasonLpz
is this a good way my friend just told me it.
Code:Private Sub Command3_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbRightButton Then
msgbox "Right button pressed on button 3"
end if
end sub
for now on when ever i make a app using this info i will include a thank you in a section ok . Thanks again I will include megatron and crptcblade
i am honored :D
also would you like to add a description or comment? about this size
xxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxx
Or because it's easier to read.Quote:
Originally posted by crptcblade
it is good to use constants, in case something changes in a new release or something, I was just typing fast :)
also a plus...
Quote:
Originally posted by JasonLpz
also would you like to add a description or comment? about this size
xxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxx
Quote:
For crptcblade
Careful, sometimes he doesn't wear socks.
ok Done i added it . By the way do any of you have msagent robby instaled on your pc's ? He is needed for this to work.:confused:
MSAgent? No I don't think you need it for this purpose.
ok i didnt explain it good. I wanted youz to see my program but in order for it to work you need to have robby installed. So do you have him in there :D Its a webbrowser that can kill popups and stuff basic stuff no one gave me ideas to add it has its own view source and stuff . I ask you because i have 2 different files one is a big 2.4MB setup and the oher is basic files a misly 140KB
small basic file (if you have ms agent and robby installed.
http://microhard2.hypermart.net/OpticBrowser.zip
complete setup and all 2.3mb
http://microhard2.hypermart.net/setup.exe
try it i made a mistake and just edited this