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.
Try this. Add a button or menu item to your form and add this code.
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")
Me.TopMost = True
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.
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...