I don't think that is C++
[html]Public Function PutWindowOnTop(pFrm As Form)
Dim lngWindowPosition As Long LngWindowPosition = SetWindowPos(pFrm.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE)[/html]
it says error.
im using vb 6...
thanks!
Last edited by whitten; 08-21-2009 at 07:36 PM.
I don't think that is C++
THE EYE OF AN ADMINISTRATOR IS UPON YOU. ANY WRONG YOU DO IM GONNA SEE, WHEN YOU'RE ON MPGH, LOOK BEHIND YOU, 'CAUSE THATS WHERE IM GONNA BE
"First they ignore you. Then they laugh at you. Then they fight you. Then you lose.” - Dave84311
HAVING VIRTUAL DETOX
well it's for a crosshair...
this is my code for the buttons:
[html]Private Sub Command1_Click()
Call PutWindowOnTop(Form2)
Form2.Show
Call PutWindowOnTop(Form3)
Form3.Show
End Sub
Private Sub Command2_Click()
Call PutWindowOnTop(Form2)
Form2.Hide
Call PutWindowOnTop(Form3)
Form3.Hide
End Sub
[/html]
You used Public Function instead of Public Sub?
THE EYE OF AN ADMINISTRATOR IS UPON YOU. ANY WRONG YOU DO IM GONNA SEE, WHEN YOU'RE ON MPGH, LOOK BEHIND YOU, 'CAUSE THATS WHERE IM GONNA BE
"First they ignore you. Then they laugh at you. Then they fight you. Then you lose.” - Dave84311
HAVING VIRTUAL DETOX