944,150 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 24764
  • VB.NET RSS
Oct 31st, 2006
0

how to make app always on top

Expand Post »
How can i make the windows application always on top of every application, including those which are in full screen?

Thanks for any replies.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
odee is offline Offline
27 posts
since Dec 2004
Oct 31st, 2006
0

Re: how to make app always on top

Click to Expand / Collapse  Quote originally posted by odee ...
How can i make the windows application always on top of every application, including those which are in full screen?

Thanks for any replies.


Hi

When you scroll down on form's property you will see an option TopMost. You just have to set that to true...(Make sure your forms are either maximized / same size)

Hope it will help!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
wednesday is offline Offline
11 posts
since Oct 2006
Oct 31st, 2006
0

Re: how to make app always on top

Thanks for the reply wednesday but it only works when the other app is in windowed mode, it doesn't work when it is in full screen.

This is what i want to do. When i'm using an application, which is in full screen mode(ex. games), i want to be able to use a text editor. The TopMost property in my app doesn't work when i'm using an application in full screen mode.
Reputation Points: 10
Solved Threads: 0
Light Poster
odee is offline Offline
27 posts
since Dec 2004
Oct 31st, 2006
0

Re: how to make app always on top

Try this. Add a button or menu item to your form and add this code.
VB.NET Syntax (Toggle Plain Text)
  1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  2. Me.TopMost = False
  3. Dim proc As Process = Process.Start("notepad.exe")
  4. proc.WaitForExit()
  5. proc.Close()
  6. Me.TopMost = True
  7. End Sub
Reputation Points: 84
Solved Threads: 58
Posting Pro in Training
waynespangler is offline Offline
461 posts
since Dec 2002
Nov 3rd, 2006
0

Re: how to make app always on top

Wayne's technique is about the only way you're going to pull this off if you're using 'real' windows.

If you've noticed in many games which 'take over your screen', the developers actually recreate Notepad within the game if text editing is required - everything 'Windows' in a well formed Full Screen game has to be reverse engineered and recreated within the full screen environment.

Even with Wayne's idea, if your app takes over resolution as well (as many games do) then the switch back to Windows mode is going to look, well, weird. You've probably alt-tabbed out of a game at some point and seen humongous icons on your desktop - that's the effect.

Try the suggestion, but consider how you might improve upon it by creating your own Virtual Notepad which works within your game.

Happy coding!

Ned
Reputation Points: 10
Solved Threads: 1
Light Poster
NedFrankly is offline Offline
26 posts
since Nov 2006
Nov 8th, 2006
0

Re: how to make app always on top

thanks for the reply.
Reputation Points: 10
Solved Threads: 0
Light Poster
odee is offline Offline
27 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Filter a lisbox
Next Thread in VB.NET Forum Timeline: Timer Control Help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC