|
-
Jan 19th, 2008, 06:43 AM
#1
Thread Starter
Frenzied Member
Always On Top
Users can keep a VB app on top of the other apps/windows by clicking a menu. Clicking other menus & buttons residing on this app invoke other Forms. This is how I implemented the always on top feature:
Code:
Private Sub mnuAlwaysTop_Click()
If (mnuAlwaysTop.Checked = False) Then
mnuAlwaysTop.Checked = True
SetWindowPos Me.hWnd, HWND_TOPMOST, 0, 0, 0, 0, Flags
Else
mnuAlwaysTop.Checked = False
SetWindowPos Me.hWnd, HWND_NOTOPMOST, 0, 0, 0, 0, Flags
End If
End Sub
But when Forms belonging to this app are invoked, even they get hidden behing the main app.
How do I ensure that when the app is always on top, the Forms that get invoked by clicking menus & buttons belonging to this app (i.e. Forms that are part & parcel of this VB app) do not get hidden behind the main app though other open apps/windows stay behind this VB app?
ARPAN
IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS!
NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE!
PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE?
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
|