473,378 Members | 1,394 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Detect Right mouse click and key press

I need to backdoor my program for IT. I want to set a form so that if an IT
staffer has the left ctrl key press and right click on a picturebox a hidden
control will appear (a checkbox) to override the startup of the program.
How is this done?

John
May 30 '06 #1
1 12852
"John Wright" <ri**********@notmail.com> schrieb:
I need to backdoor my program for IT. I want to set a form so that if an
IT staffer has the left ctrl key press and right click on a picturebox a
hidden control will appear (a checkbox) to override the startup of the
program. How is this done?


\\\
Private Sub PictureBox1_MouseUp( _
ByVal sender As Object, _
ByVal e As MouseEventArgs _
) Handles PictureBox1.MouseUp
If _
e.Button = MouseButtons.Right AndAlso _
CBool(Control.ModifierKeys And Keys.LControlKey) _
Then
MsgBox("Hello World!")
End If
End Sub
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

May 30 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Maurice Mertens | last post by:
Hi all, I want to cancel the right-mouse click on a control in VB.NET. Does anyone know how to do this? -- Met vriendelijke groet / With regards / Saludos, Moviat Automatisering
1
by: Sundar | last post by:
Hi I would like to center align the menu that gets displayed when right mouse is clicked. In MFC, the function TrackPopupMenu takes a parameter that determines the alignment of the menu (left,...
3
by: Gary | last post by:
Hi, How does one create the code to right mouse click in a rich text box area to say popup the edit menu that I have created in my text editor? When I imported my VB6 code into vb.net for the...
1
by: Nathan Williams via .NET 247 | last post by:
I'd like to be able to capture a Right Mouse Click event on aparticular Tab and popup a context menu to allow the user toclose the tab without the tab having to be the current selectedtab. Does...
6
by: jcrouse | last post by:
I have the following mouse events assigned to a label control. Is the a way I can tell which mouse button the users has clicked with? Private Sub lblP1JoyUp_Click(ByVal sender As System.Object,...
5
by: mabond | last post by:
Hi My project has a form, two list boxes (lstArchive and lstSchedule) and two buttons (btnSendArchive and btnSendSchedule) Each list box represents the content of a directory. The command...
1
by: Joe Blow | last post by:
I would like to set the index in a ComboBox with the item under the mouse when I right click the mouse. I have set up a context menu with 2 items, all that works great. I want to execute the...
0
by: johnmcpherson1 | last post by:
What's the best method for detecting a ctrl key being depressed simultaniously with a right mouse click in a datagrid in a vb application? I need to get row, field resolution. Regards, John
5
by: nuhfeken | last post by:
We have a C# winform that uses the MVP design pattern for the user interface. For reasons I'd rather not explain we need to simulate a right mouse click on a specific control to deactivate the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.