472,993 Members | 2,191 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,993 software developers and data experts.


Dear All

Please tell me how to assosiate help files with my Vb.net



Jul 21 '05 #1
2 6154
you can do this by the given example
Imports System
Imports System.Drawing
Imports System.ComponentModel
Imports System.Windows.Forms

Public Class Form1
Inherits System.Windows.Forms.Form
Private helpfile As String = "mspaint.chm"
Private WithEvents showIndex As
Private WithEvents showHelp As
Private WithEvents label1 As System.Windows.Forms.Label
Private WithEvents navigatorCombo As
Private WithEvents showKeyword As
Private WithEvents keyword As
Private WithEvents label2 As System.Windows.Forms.Label
Private WithEvents label3 As System.Windows.Forms.Label
Private WithEvents parameterTextBox As

<STAThread()> _
Shared Sub Main()
Application.Run(New Form1)
End Sub 'Main

Public Sub New()
Me.showIndex = New System.Windows.Forms.Button
Me.showHelp = New System.Windows.Forms.Button
Me.navigatorCombo = New
Me.label1 = New System.Windows.Forms.Label
Me.showKeyword = New System.Windows.Forms.Button
Me.keyword = New System.Windows.Forms.TextBox
Me.label2 = New System.Windows.Forms.Label
Me.label3 = New System.Windows.Forms.Label
Me.parameterTextBox = New

' Help Navigator Label
Me.label1.Location = New System.Drawing.Point(112,
Me.label1.Size = New System.Drawing.Size(168, 16)
Me.label1.Text = "Help Navigator:"

' Keyword Label
Me.label2.Location = New System.Drawing.Point(120,
Me.label2.Size = New System.Drawing.Size(100, 16)
Me.label2.Text = "Keyword:"

' Parameter Label
Me.label3.Location = New System.Drawing.Point(112,
Me.label3.Size = New System.Drawing.Size(168, 16)
Me.label3.Text = "Parameter:"

' Show Index Button
Me.showIndex.Location = New System.Drawing.Point
(16, 16)
Me.showIndex.Size = New System.Drawing.Size(264,
Me.showIndex.TabIndex = 0
Me.showIndex.Text = "Show Help Index"

' Show Help Button
Me.showHelp.Location = New System.Drawing.Point
(16, 80)
Me.showHelp.Size = New System.Drawing.Size(80, 80)
Me.showHelp.TabIndex = 1
Me.showHelp.Text = "Show Help"

' Show Keyword Button
Me.showKeyword.Location = New System.Drawing.Point
(16, 192)
Me.showKeyword.Size = New System.Drawing.Size(88,
Me.showKeyword.TabIndex = 4
Me.showKeyword.Text = "Show Keyword"

' Help Navigator Combo
Me.navigatorCombo.DropDownStyle =
Me.navigatorCombo.Location = New
System.Drawing.Point(112, 80)
Me.navigatorCombo.Size = New System.Drawing.Size
(168, 21)
Me.navigatorCombo.TabIndex = 2

' Keyword TextBox
Me.keyword.Location = New System.Drawing.Point
(120, 200)
Me.keyword.Size = New System.Drawing.Size(160, 20)
Me.keyword.TabIndex = 5
Me.keyword.Text = ""
' Parameter TextBox
Me.parameterTextBox.Location = New
System.Drawing.Point(112, 136)
Me.parameterTextBox.Size = New System.Drawing.Size
(168, 20)
Me.parameterTextBox.TabIndex = 8
Me.parameterTextBox.Text = ""

' Set up how the form should be displayed and add
the controls to the form.
Me.ClientSize = New System.Drawing.Size(292, 266)
System.Windows.Forms.Control() {Me.parameterTextBox, _
Me.label3, Me.label2,
Me.keyword, Me.showKeyword, _
Me.navigatorCombo, Me.showHelp, Me.showIndex})
Me.FormBorderStyle =
Me.Text = "Help App"

' Load the various values of the HelpNavigator
' into the combo box.
Dim converter As TypeConverter
converter = TypeDescriptor.GetConverter(GetType

Dim value As Object
For Each value In converter.GetStandardValues()
Next value
End Sub 'New

Private Sub showIndex_Click(ByVal sender As Object,
ByVal e As System.EventArgs) Handles showIndex.Click
' Display the index for the Help file.
Help.ShowHelpIndex(Me, helpfile)
End Sub 'showIndex_Click
Private Sub showHelp_Click(ByVal sender As Object,
ByVal e As System.EventArgs) Handles showHelp.Click
' Display Help using the Help navigator enumeration
' that is selected in the combo box. Some
' values make use of an extra parameter, which can
' be passed in through the Parameter text box.
Dim navigator As HelpNavigator =
If Not (navigatorCombo.SelectedItem Is Nothing)
navigator = CType(navigatorCombo.SelectedItem,
End If
Help.ShowHelp(Me, helpfile, navigator,
End Sub 'showHelp_Click
Private Sub showKeyword_Click(ByVal sender As Object,
ByVal e As System.EventArgs) Handles showKeyword.Click
' Display Help using the provided keyword.
Help.ShowHelp(Me, helpfile, keyword.Text)
End Sub 'showKeyword_Click
End Class 'Form1



Sanjeev Azad

-----Original Message-----
Dear All

Please tell me how to assosiate help files with my Vb.netProject.




Jul 21 '05 #2
Please tell me how to assosiate help files with my Vb.net Project.

These resources should help:


Pete (Microsoft Help MVP)
Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Dave | last post by:
After following Microsofts admonition to reformat my system before doing a final compilation of my app I got many warnings/errors upon compiling an rtf file created in word. I used the Help...
by: Tom | last post by:
A question for gui application programmers. . . I 've got some GUI programs, written in Python/wxPython, and I've got a help button and a help menu item. Also, I've got a compiled file made with...
by: wukexin | last post by:
Help me, good men. I find mang books that introduce bit "mang header files",they talk too bit,in fact it is my too fool, I don't learn it, I have do a test program, but I have no correct doing...
by: Colin J. Williams | last post by:
Python advertises some basic service: C:\Python24>python Python 2.4.1 (#65, Mar 30 2005, 09:13:57) on win32 Type "help", "copyright", "credits" or "license" for more information. >>> With...
by: Corepaul | last post by:
Missing Help Files When I enter "recordset" as the keyword and search the Visual Basic Help index, I get many topics of interest in the resulting list. But there isn't any information available...
by: Steve | last post by:
I have written a help file (chm) for a DLL and referenced it using Help.ShowHelp My expectation is that a developer using my DLL would be able to access this help file during his development time...
by: Mark | last post by:
I have loaded Visual Studio .net on my home computer and my laptop, but my home computer has an abbreviated help screen not 2% of the help on my laptop. All the settings look the same on both...
by: JonathanOrlev | last post by:
Hello everybody, I wrote this comment in another message of mine, but decided to post it again as a standalone message. I think that Microsoft's Office 2003 help system is horrible, probably...
by: trunxnirvana007 | last post by:
'UPGRADE_WARNING: Array has a new behavior. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="9B7D5ADD-D8FE-4819-A36C-6DEDAF088CC7"' 'UPGRADE_WARNING: Couldn't resolve...
by: hitencontractor | last post by:
I am working on .NET Version 2003 making an SDI application that calls MS Excel 2003. I added a menu item called "MyApp Help" in the end of the menu bar to show Help-> About. The application...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.