| | |
how to make app always on top
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2006
Posts: 11
Reputation:
Solved Threads: 0
•
•
•
•
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!
•
•
Join Date: Dec 2004
Posts: 27
Reputation:
Solved Threads: 0
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.
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.
•
•
Join Date: Dec 2002
Posts: 461
Reputation:
Solved Threads: 56
Try this. Add a button or menu item to your form and add this code.
VB.NET Syntax (Toggle Plain Text)
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.TopMost = False Dim proc As Process = Process.Start("notepad.exe") proc.WaitForExit() proc.Close() Me.TopMost = True End Sub
•
•
Join Date: Nov 2006
Posts: 26
Reputation:
Solved Threads: 1
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
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
![]() |
Similar Threads
- I need help again (C++)
- knoppix or else (Getting Started and Choosing a Distro)
- Error msg when installing IExplorer6.0 (Windows 95 / 98 / Me)
- need a personal mentor (PHP)
Other Threads in the VB.NET Forum
- Previous Thread: Filter a lisbox
- Next Thread: Timer Control Help
| Thread Tools | Search this Thread |
"crystal .net .net2005 30minutes 2008 access add advanced application array assignment basic binary box button buttons center click code combo connectionstring convert cpu data database databasesearch datagrid datagridview design designer dissertation dissertations dissertationthesis dosconsolevb.net editvb.net employees excel exists firewall folder image images isnumericfuntioncall listview login map math memory mobile module msaccess mssqlbackend mysql navigate net number opacity pan peertopeervideostreaming picturebox picturebox2 port print printpreview record regex reports" reuse right-to-left save savedialog search serial socket sorting sqldatbase sqlserver storedprocedure string temp textbox timer txttoxmlconverter upload useraccounts usercontol usercontrol vb vb.net vb.netcode vb.nettoolboxvisualbasic2008sidebar vbnet vista visual visualbasic visualbasic.net visualstudio.net web wpf xml





