Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2009-03-31
8
Medium Priority
?
387 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 1500 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

886 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