Solved

Attn: WDB  please read

Posted on 1998-10-13
4
132 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now