Ouvrir .chm depuis un menu

HEproduct Messages postés 23 Date d'inscription mardi 18 décembre 2001 Statut Membre Dernière intervention 19 mars 2003 - 31 mars 2002 à 03:17
HEproduct Messages postés 23 Date d'inscription mardi 18 décembre 2001 Statut Membre Dernière intervention 19 mars 2003 - 11 sept. 2002 à 19:05
Bonjour je voudrai ouvrir mon fichier d'aide (.chm) depuis mon menu, et Shell marche po :-( ... aussi il y a bien un exemple dans les source mais c'est avec un dir list box arf ... Merci de m'aider ;-)
Hervé

5 réponses

cs_sjon Messages postés 861 Date d'inscription mardi 26 mars 2002 Statut Membre Dernière intervention 29 novembre 2006 1
3 avril 2002 à 04:38
Sael og blesud (salut)

déclare dans option explicit la variable suivante

Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd&, ByVal lpOperation$, ByVal lpFile$, ByVal lpParameters$, ByVal lpDirectory$, ByVal nShowCmd&) As Long

puis dans ton menu_click()

ShellExecute form1.hwnd, vbNullString, "31users.chm", vbNullString, "c:\windows\help", 1
0
HEproduct Messages postés 23 Date d'inscription mardi 18 décembre 2001 Statut Membre Dernière intervention 19 mars 2003
5 avril 2002 à 02:19
Arffff ....... marche po !!!! zut, ... :-( qui peut m'aider ? HELP !!!!!!!!!!!!!!!!!!!
0
cs_sjon Messages postés 861 Date d'inscription mardi 26 mars 2002 Statut Membre Dernière intervention 29 novembre 2006 1
5 avril 2002 à 03:04
Ca marche très bien, je t'ai mis une source à l'adresse suivante:
http://norbert.moineau.free.fr/test/chm.zip
0
dany108 Messages postés 71 Date d'inscription mardi 29 janvier 2002 Statut Membre Dernière intervention 6 janvier 2011 1
10 sept. 2002 à 23:53
Il faut déclarer le fichier chm comme étant un fichier d'aide : App.HelpFile = Chemin & MonFichier.chm

Si on appuie sur F1 ça marche.
Pour lancer le fichier depuis un bouton, j'utilise SendKeys "{F1}" et ça marche aussi.
Simple, pas d'API. Cool quoi !!
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
HEproduct Messages postés 23 Date d'inscription mardi 18 décembre 2001 Statut Membre Dernière intervention 19 mars 2003
11 sept. 2002 à 19:05
Merci pour ton aide :-))) bien à toi
Hervé / VBEdit
0
Rejoignez-nous