brizon
Messages postés7Date d'inscriptionmardi 5 février 2002StatutMembreDernière intervention 2 avril 2002
-
5 févr. 2002 à 19:56
brizon
Messages postés7Date d'inscriptionmardi 5 février 2002StatutMembreDernière intervention 2 avril 2002
-
5 févr. 2002 à 21:11
Bonjour,
j'aimerais savoir s'il est possible de faire sous VB qu'une fenetre(form) reste toujours sur l'ecran (apres l'execution) meme si on ouvre une page web, un fichier word ou n'importe quoi. Si oui comment? Merci pour toutes les suggestions. Sylva B.
ZTPdiffusion
Messages postés46Date d'inscriptionlundi 16 avril 2001StatutMembreDernière intervention 7 mars 2002 5 févr. 2002 à 20:55
Salut
Tu peux essayer ça :
Dans un module mettre le code suivant
'
'Déclaration API fenêtre au premier plan
'
Public Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
'
'Configuration fenêtre au premier plan
'
Public Const ONTOP = -1&
Public Const DISABLE_ONTOP = -2&
Public Const wFlag = 33
Public Function FenetreOnTop(frmOnTop As Form, Parametre As Integer)
Dim WndLeft, WndTop As Long