473,581 Members | 2,786 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help

Dear All

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

Regards

Sudheer

Jul 21 '05 #1
2 6439
you can do this by the given example
''************* *************** **********
Imports System
Imports System.Drawing
Imports System.Componen tModel
Imports System.Windows. Forms

Public Class Form1
Inherits System.Windows. Forms.Form
Private helpfile As String = "mspaint.ch m"
Private WithEvents showIndex As
System.Windows. Forms.Button
Private WithEvents showHelp As
System.Windows. Forms.Button
Private WithEvents label1 As System.Windows. Forms.Label
Private WithEvents navigatorCombo As
System.Windows. Forms.ComboBox
Private WithEvents showKeyword As
System.Windows. Forms.Button
Private WithEvents keyword As
System.Windows. Forms.TextBox
Private WithEvents label2 As System.Windows. Forms.Label
Private WithEvents label3 As System.Windows. Forms.Label
Private WithEvents parameterTextBo x As
System.Windows. Forms.TextBox

<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.navigatorCom bo = New
System.Windows. Forms.ComboBox
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.parameterTex tBox = New
System.Windows. Forms.TextBox

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

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

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

' Show Index Button
Me.showIndex.Lo cation = New System.Drawing. Point
(16, 16)
Me.showIndex.Si ze = New System.Drawing. Size(264,
32)
Me.showIndex.Ta bIndex = 0
Me.showIndex.Te xt = "Show Help Index"

' Show Help Button
Me.showHelp.Loc ation = New System.Drawing. Point
(16, 80)
Me.showHelp.Siz e = New System.Drawing. Size(80, 80)
Me.showHelp.Tab Index = 1
Me.showHelp.Tex t = "Show Help"

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

' Help Navigator Combo
'
Me.navigatorCom bo.DropDownStyl e =
System.Windows. Forms.ComboBoxS tyle.DropDownLi st
Me.navigatorCom bo.Location = New
System.Drawing. Point(112, 80)
Me.navigatorCom bo.Size = New System.Drawing. Size
(168, 21)
Me.navigatorCom bo.TabIndex = 2

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

' Set up how the form should be displayed and add
the controls to the form.
Me.ClientSize = New System.Drawing. Size(292, 266)
Me.Controls.Add Range(New
System.Windows. Forms.Control() {Me.parameterTe xtBox, _
Me.label3, Me.label2,
Me.keyword, Me.showKeyword, _
Me.label1,
Me.navigatorCom bo, Me.showHelp, Me.showIndex})
Me.FormBorderSt yle =
System.Windows. Forms.FormBorde rStyle.FixedDia log
Me.Text = "Help App"

' Load the various values of the HelpNavigator
enumeration
' into the combo box.
Dim converter As TypeConverter
converter = TypeDescriptor. GetConverter(Ge tType
(HelpNavigator) )

Dim value As Object
For Each value In converter.GetSt andardValues()
navigatorCombo. Items.Add(value )
Next value
End Sub 'New

Private Sub showIndex_Click (ByVal sender As Object,
ByVal e As System.EventArg s) Handles showIndex.Click
' Display the index for the Help file.
Help.ShowHelpIn dex(Me, helpfile)
End Sub 'showIndex_Clic k
Private Sub showHelp_Click( ByVal sender As Object,
ByVal e As System.EventArg s) Handles showHelp.Click
' Display Help using the Help navigator enumeration
' that is selected in the combo box. Some
enumeration
' values make use of an extra parameter, which can
' be passed in through the Parameter text box.
Dim navigator As HelpNavigator =
HelpNavigator.T ableOfContents
If Not (navigatorCombo .SelectedItem Is Nothing)
Then
navigator = CType(navigator Combo.SelectedI tem,
HelpNavigator)
End If
Help.ShowHelp(M e, helpfile, navigator,
parameterTextBo x.Text)
End Sub 'showHelp_Click
Private Sub showKeyword_Cli ck(ByVal sender As Object,
ByVal e As System.EventArg s) Handles showKeyword.Cli ck
' Display Help using the provided keyword.
Help.ShowHelp(M e, helpfile, keyword.Text)
End Sub 'showKeyword_Cl ick
End Class 'Form1

''************* *************** **********

cheers

Sanjeev Azad

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

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

Regards

Sudheer

.

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


These resources should help:

http://helpware.net/mshelp2/demo2/h1xNET.htm
http://msdn.microsoft.com/library/en...pplication.asp

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

21
6521
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 Workshop program: hcw.exe that's included with Visual Basic. This exact same file compiled perfectly with no notes, warnings or errors prior to...
9
4392
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 the microsoft HTML workshop utility, lets call it c:\path\help.chm. My question is how do you launch it from the GUI? What logic do I put behind...
6
4321
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 result in any way. Who can help me, I thank you very very much. list.cpp(main program)...
3
3342
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 numarray, help gives unhelpful responses:
7
5357
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 from clicking on many of the available topics (mostly methods but some properties are also unavailable). This same problem occurs with many, if not...
5
3256
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 using "F1" help within the VB IDE. Is this expectation achievable In trying to test my help file in the IDE, I have a solution with 2 projects:...
8
3213
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 including search the internet for help, but the help is worthless. Any ideas?
10
3347
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 the worst I ever seen. I almost cannot find anything I need, including things I
1
6120
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 default property of object Label. Click for more:...
0
2869
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 calls MS Excel, so the scenario is that I am supposed to see the Excel Menu bar, FILE EDIT VIEW INSERT ... HELP. I am able to see the menu bar, but in...
0
7808
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8312
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
5366
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3809
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3835
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2309
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1410
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1145
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.