• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 146
  • Last Modified:

Attn: WDB please read

The app you helped me with has a small problem I can't seem to fix.
Please look at http//members.localnet.com/~bbender/helpme/home.htm
and download the project there. Its small and in VB5.0
Thanks...
0
rfb
Asked:
rfb
  • 2
  • 2
1 Solution
 
WDBCommented:
I placed an updated VB5 project here:
http://www.wwwebit.com/billmich/code/answer.html

Let me know if you have any questions about the code.
0
 
rfbAuthor Commented:
WDB..I'm going to give you an "A". Everything works fine. I just have one more question. If I make a frame visible, how can I make it so that it is "on top" of everything else on the desk top?. I want it to be a warning screen that the user HAS to click ok on to continue working.
would you consider offering your e-mail to me for future help?
bob
bbender@cidcorp.com

0
 
WDBCommented:
This is a separate question all together. Normally I wouldn't answer this unless it was posted as a separate question since it has nothing to do with your original one, but since the answer is quick I'll let it slide this time. Add the follwing code to your module.

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)

Global Const HWND_TOPMOST = -1

Then, when your form loads call :
   SetWindowPos(Form1.hwnd,HWND_TOPMOST,Starting Xpos,Starting YPos,Width,Height,0)

' You must specify Starting Xpos,Starting YPos,Width and Height

Your form should now remain on top of all other windows even if it's disabled.


0
 
rfbAuthor Commented:
thanks much...
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now