Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 7th, 2006, 01:55 PM
Athono Athono is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2005
Posts: 54 Athono User rank is Corporal (100 - 500 Reputation Level)Athono User rank is Corporal (100 - 500 Reputation Level)Athono User rank is Corporal (100 - 500 Reputation Level)Athono User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 1 m 27 sec
Reputation Power: 4
I need suggestions for creating a Help system for a Visual Basic Program.

I need suggestions for creating a Help system for a Visual Basic Program.

We have a requirement to provide "on-line help" to our Visual Basic program. What I believe they mean is the sort of Help functionality that one normally sees in C++ generated program.

Does anyone have any suggestions?

I have been told that the file type is a .CHM file that the help system uses. Is there a Help Component in Visual Basic?

What I would really like to do is to have the user choose between having the help be displayed in either .CHM or .HTM format. So, is there a web browser component in Visual Basic too?

Reply With Quote
  #2  
Old February 7th, 2006, 03:10 PM
Scorpions4ever Scorpions4ever is offline
Mad Rater
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 126 Scorpions4ever User rank is Corporal (100 - 500 Reputation Level)Scorpions4ever User rank is Corporal (100 - 500 Reputation Level)Scorpions4ever User rank is Corporal (100 - 500 Reputation Level)Scorpions4ever User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 11 h 31 m 44 sec
Reputation Power: 8
1. In your VB application, add this code to be executed on startup.
Code:
App.HelpFile = App.Path & "\helpfile.chm"

2. Set the HelpContextID property of your forms and controls to the IDs in the CHM file for various sections.

This will make the help work.

If you want to popup help separately (as a result of a dialog action or whatever), simply declare this function and constants:
Code:
Declare Function HtmlHelp Lib "HHCtrl.ocx" Alias "HtmlHelpA" _
   (ByVal hwndCaller As Long, _
   ByVal pszFile As String, _
   ByVal uCommand As Long, _
   dwData As Any) As Long

Const HH_DISPLAY_TOPIC = &H0
Const HH_HELP_CONTEXT = &HF

and call this as follows:
Code:
Call HtmlHelp(frmMain.hWnd, "c:\help\helpfile.chm", HH_DISPLAY_TOPIC, ByVal "Topic1.htm")
Call HtmlHelp(frmMain.hWnd, App.HelpFile, HH_HELP_CONTEXT, ByVal CLng(12345))
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.

Last edited by Scorpions4ever : February 7th, 2006 at 03:14 PM.

Reply With Quote
  #3  
Old February 7th, 2006, 06:18 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 29 m 58 sec
Reputation Power: 181
Take a look at the htmlhelp section of www.mvps.org
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
  #4  
Old February 7th, 2006, 06:26 PM
Athono Athono is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2005
Posts: 54 Athono User rank is Corporal (100 - 500 Reputation Level)Athono User rank is Corporal (100 - 500 Reputation Level)Athono User rank is Corporal (100 - 500 Reputation Level)Athono User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 1 m 27 sec
Reputation Power: 4
Quote:
Originally Posted by Scorpions4ever
1. In your VB application, add this code to be executed on startup.
Code:
App.HelpFile = App.Path & "\helpfile.chm"



OK, but how do I create the .CHM file? What tool does this?

Reply With Quote
  #5  
Old February 7th, 2006, 07:55 PM
Scorpions4ever Scorpions4ever is offline
Mad Rater
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 126 Scorpions4ever User rank is Corporal (100 - 500 Reputation Level)Scorpions4ever User rank is Corporal (100 - 500 Reputation Level)Scorpions4ever User rank is Corporal (100 - 500 Reputation Level)Scorpions4ever User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 11 h 31 m 44 sec
Reputation Power: 8
There is a HTML Help tool that comes with microsoft Office. There are also other freeware CHM file creators available.

Reply With Quote
  #6  
Old February 7th, 2006, 09:48 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 29 m 58 sec
Reputation Power: 181
And Microsoft gives away their .chm creation tool, look on the MS site for the htmlhelp sdk download.

Reply With Quote
  #7  
Old February 13th, 2006, 07:56 PM
Athono Athono is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2005
Posts: 54 Athono User rank is Corporal (100 - 500 Reputation Level)Athono User rank is Corporal (100 - 500 Reputation Level)Athono User rank is Corporal (100 - 500 Reputation Level)Athono User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 1 m 27 sec
Reputation Power: 4
I think for a first pass at this I am going to just launch an .ADP file inside a launched IE. How would I do this in Visual Basic?

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > I need suggestions for creating a Help system for a Visual Basic Program.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT