Solved

Calling a Help File in VB

Posted on 2001-08-02
9
176 Views
Last Modified: 2012-05-04
I have a help file that I am trying to call in VB.  The first form in the application is an MDI Form.  If I press F1 here with no other forms visible (loading a form into memory does not work, I have to actually show it) the help file will not display.  If I show another form and then press F1 the help file will come up.  In my main program I set App.Helpfile to my help file name with path.  How do I get the help file to come up when only the MDI form is open and how do I call the help file from a menu item?
0
Comment
Question by:dsa7
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3
9 Comments
 

Expert Comment

by:GrahamAtJobserve
ID: 6344693
Try set the keypreview property on the MDI form and capture the F1 keystroke, then open the help file manually.
0
 

Expert Comment

by:GrahamAtJobserve
ID: 6344713
Or better still set the help menu accelerator key to F1
0
 

Author Comment

by:dsa7
ID: 6344714
How do I open the help file manually?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:dsa7
ID: 6344764
How do I open the help file manually?
0
 

Expert Comment

by:GrahamAtJobserve
ID: 6344776
try shelling winhelp with a command line
0
 

Expert Comment

by:GrahamAtJobserve
ID: 6344806
like this

Shell "winhlp32 " & App.HelpFile, vbNormalFocus
0
 

Accepted Solution

by:
GrahamAtJobserve earned 75 total points
ID: 6344819
To conclude, this is the answer...

have F1 as the shortcut key in a help menu, and use the line of code

Sub mnuHelp_click()
     Shell "winhlp32 " & App.HelpFile, vbNormalFocus
End Sub
0
 

Author Comment

by:dsa7
ID: 6345357
Shelling out works but not exactly the way I wanted it to.  As a workaround, I created a dummy form that blends into my mdimain background and show this form when I first load the app.  That seems to work.
0
 

Expert Comment

by:GrahamAtJobserve
ID: 6345376
Wont that give a problem if you want to have a window list on your menus?

imaginative workaround though - I'm impressed.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month9 days, 15 hours left to enroll

624 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