Opening an app over all other open windows....

enenalan

Member
Joined
Sep 17, 2011
Messages
10
Programming Experience
Beginner
Is there any switch that will allow you to open an application over all the other currently open applications? My problem is getting Explorer to open over all the other currently open applications. Right now, it only opens in the background......

Thanks!!!
 
do you mean ontop? of all applications, from the click of a button on form? if so then you could use

Private Sub Button1_Click_1(sender As System.Object, 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
This is the form it's self if you want to have Applications like "IE" or any other windows program then you will need to use API function's, then code from their.
 
It's actually running off a perpetual script. The code opens a window if a set value becomes true. That all works fine. It's just getting the Explorer window to open on top. Here's the code that opens Explorer....

VB.NET:
    Set objShell = WScript.CreateObject("WScript.Shell")
    objShell.Run "IEXPLORE.EXE -k [URL="http://command.elbnet.com/patrons/staffkill.cgi"]http://somewebsite.cgi[/URL]",1,False

Any ideas to get it on top of all the other windows?
 
Yeah, that didn't work. IE9 has been giving me nothing but trouble for as long as I can remember. I can get the focus on the app, but it still doesn't come to the forefront. I'm going to try and rig this page as a javascript popup. Maybe that'll do it. Any VB input is still welcome though......
 
Back
Top