|
-
Jan 4th, 2005, 10:12 AM
#1
Thread Starter
Addicted Member
Always on Top
hi i want a form to be displayed wid accurate coordinates every time like this, it should always start above the Taskbar, shoud'nt be moveable or resizeable n always be on top, like if a new window opens then it should be above that form.
my question is similar to Spedia bar if ne body has seen it !
-
Jan 4th, 2005, 11:41 AM
#2
Frenzied Member
Re: Always on Top
 Originally Posted by hyousuf2
hi i want a form to be displayed wid accurate coordinates every time like this, it should always start above the Taskbar, shoud'nt be moveable or resizeable n always be on top, like if a new window opens then it should be above that form.
my question is similar to Spedia bar if ne body has seen it !
This has been asked tons of times before, do a search on theese forums.
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
-
Jan 4th, 2005, 10:06 PM
#3
New Member
Re: Always on Top
if you have vb6 you can use form layout to set where you want your form to load. form layout is found in lower right hand corner of vb6. and for keeping the form on top:
VB Code:
Private Sub Form_Load()
Call SetWindowPos(FrmName.hwnd, HWND_TOPMOST, 0, 0, 0, 0, FLAGS)
End Sub
-
Jan 5th, 2005, 01:39 AM
#4
Addicted Member
Re: Always on Top
Use the label method everytime you run program in the top
Or Visit us :www.vbaccelerator.com
" I never did anything worth doing entirely by accident.... Almost none of my inventions were derived in that manner. They were achieved by having trained myself to be analytical and to endure and tolerate hard work."
" Many of life's failures are experienced by people who did not realize how close they were to success when they gave up. "
- Thomas Alva Edison-
In God We Trust 
-
Jan 5th, 2005, 10:37 AM
#5
Thread Starter
Addicted Member
Re: Always on Top
hey where to find the method SetWIndowsPos ?
-
Jan 5th, 2005, 10:43 AM
#6
-
Jan 5th, 2005, 10:50 AM
#7
Re: Always on Top
Here is a sample program ( a modified version of something from psc that was downloaded long time ago).
It doesn't include SetWindowPos, trough, but it calculates Taskbar dimensions and position so you can place your form presizely where you want it.
Last edited by RhinoBull; Jan 5th, 2005 at 10:54 AM.
-
Jan 5th, 2005, 01:15 PM
#8
Thread Starter
Addicted Member
Re: Always on Top
well i found how to get the dimensions of the taskbar, but wat abt placing the form on Top.
-
Jan 5th, 2005, 01:18 PM
#9
Re: Always on Top
It has been suggested to you numerous times already: use SetWindowPos() api function (samples could be found in this thread).
Regards.
-
Jan 5th, 2005, 01:40 PM
#10
Thread Starter
Addicted Member
Re: Always on Top
thnkx well i was able to solve it eventually, check out ma next thread !
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|