PDA

Voir la version complète : Integrer l'aide dans une application Vb.net


crazytornado
11/02/2009, 01h03
Salamo 3alaykom

We know that every application need‘s help tool, in order to make it easier for our clients, that’s why I think that every developer should know that:

*You have to download “WINCHM” version 3.518
*Create a new project
*Give the title of your project
*Specify the blank folder (emplacement)

When your project is ready

*Click on “build “specify the name but this time it will be .chm “name.chm”
*Click on start

Now you have a help file called “name.chm” ,copy the file and put it in your application debug

Then you have to call it using your application so:

*Open your application in from load of your form put that code:

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
HelpProvider1.HelpNamespace = Application.StartupPath & "\11.chm"
End Sub

And in your stripmenuitem (Ex:in my example its an MDI form) put that code:

Private Sub ContentsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ContentsToolStripMenuItem.Click
Help.ShowHelp(Me, HelpProvider1.HelpNamespace)
End Sub

NB: Don’t forget to add from the tool box:
- Menustrip
- HelpProvider

Again it’s just an idea the rest is up to you

Good luck every one

free_info
11/02/2009, 01h23
rien a dire :)!

info-creator
11/02/2009, 13h12
tbarkellah 3la khay abdellah
n3ewwel 3lik et mankhafch 3lik bien sur, t le meilleur pour moi

blach
02/04/2009, 10h53
thanks a lot