Solved

Attn: WDB  please read

Posted on 1998-10-13
4
135 Views
Last Modified: 2011-04-14
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
Comment
Question by:rfb
  • 2
  • 2
4 Comments
 
LVL 2

Expert Comment

by:WDB
ID: 1439764
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
 
LVL 1

Author Comment

by:rfb
ID: 1439765
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
 
LVL 2

Accepted Solution

by:
WDB earned 90 total points
ID: 1439766
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
 
LVL 1

Author Comment

by:rfb
ID: 1439767
thanks much...
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question