Solved

In .NET is it possible to use a key other than F1 with the HelpProvider component?

Posted on 2009-03-31
8
380 Views
Last Modified: 2013-11-07
It is possible to use a key other than F1 with the HelpProvider component? Or a combination of keys other than F1?  Thank you!
0
Comment
Question by:MEINMEL
  • 5
  • 2
8 Comments
 
LVL 15

Expert Comment

by:spprivate
ID: 24033541
You want a help key association for the application you create or for your Visual Studio editor
0
 

Author Comment

by:MEINMEL
ID: 24033563
This would be for an application.  I want to use the F1 key for something else and Alt-F1 for the HelpProvider component. I am working in VB .NET.
0
 

Author Comment

by:MEINMEL
ID: 24042249
I really need an answer to this as quickly as possible.  If the answer is that I need 'a help key association', how do I set that up?  Thank you
0
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 

Expert Comment

by:that_it_guy
ID: 24053594
You have to provide code in the key handler event to use other keys. For example:

Private Sub txtName_KeyDown(ByVal sender As Object, _
ByVal e As System.Windows.Forms.KeyEventArgs) _
Handles txtName.KeyDown
    If e.KeyCode = Keys.F1 And e.Alt Then
    Help.ShowPopup(txtName, "This is an alternative help message", _
    New Point(Me.Location.X + txtName.Location.X, _
    Me.Location.Y + txtName.Location.Y))
    End If
End Sub

This would show help if the Alt+F1 was pressed.
0
 

Author Comment

by:MEINMEL
ID: 24053673
Thank you for your resonse!  Is it possible to create a wrapper class around the HelpProvider and intercept the F1 key?
0
 

Accepted Solution

by:
that_it_guy earned 500 total points
ID: 24053899
Not sure, but check out this link. Maybe it will help?

http://www.west-wind.com/WebLog/posts/1438.aspx
0
 

Author Comment

by:MEINMEL
ID: 24053939
Thank you!  If anyone has done this I would appreciate some input on how well it worked and if there were any negatives to doing this.
0
 

Author Closing Comment

by:MEINMEL
ID: 31564960
The solution was acceptable, but I would also like to have known if an Expert has done this before and if there were any problems.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Display current date,month,and year to JTextField 3 59
Eclipse for PHP 1 111
Automate Upload with Git using Bit Bucket / Source Tree 4 77
Intellij adding new line in xml 3 76
In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question