For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > May 2004 > Loading Help file programmatically









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Loading Help file programmatically
Dene

2004-05-03, 12:33 pm

I have created the .chm file for an application and have specified this in the project properties with a shortcut of F1 and that all works well. But I want to load it from a menu item. e.g. when mnuHelpHelp is clicked I want it to load the help file.

Can anyone please supply sample code to achieve this

Tia
Dene
Phill. W

2004-05-04, 11:43 am

"Dene" <anonymous@discussions.microsoft.com> wrote in message
news:3BE02F76-BD12-49A0-AF53-D6C0A5F058B0@microsoft.com...
> I have created the .chm file for an application and have specified
> this in the project properties with a shortcut of F1 and that all
> works well. But I want to load it from a menu item.


Dene,

It's a bit of a hack, but ...

If F1 works for you, then [re-]use it!

Sub mnuHelpHelp_Click()
SendKeys "{F1}", True
End Sub

HTH,
Phill W.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com