473,808 Members | 2,861 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ProcessStartInf o & CreateNoWindow not launching new window

I have the following code:

Dim BrowserLauncher As New ProcessStartInf o
BrowserLauncher .FileName = URL BrowserLauncher .CreateNoWindow =
False
BrowserLauncher .UseShellExecut e = True
BrowserLauncher .WindowStyle = ProcessWindowSt yle.Maximized
Process.Start(B rowserLauncher)

Each time I run this, IE does NOT open a new browser window but instead
uses a current browser I already have open.

Anyone know away around this? I'm coding from VB.NET windows form
trying to launch a web page.

Note: If I don't have any browser open at all, a new browser IS
launched.

Any help would be appreciated.

7078895

Nov 19 '05 #1
1 3505
Because you are passing the url as the filename to execute, I am sure the
windows shell see's a process already exists to handle this command then
routes it straight there.

It is the same as going to start->run, then typing in a url.

If you want a new window to open each time, you will need to start the
iexplore.exe process. If you pass the URL as a command argument it will
open a new window each time as it is actually starting the iexplore.exe
process.

BrowserLauncher .Filename = "c:\program files\internet explorer\iexplo re.exe"
(your own path will probably be here.)
BrowserLauncher .Arguments = URL

HTH,

bill

PS, nice cross post.

<sp***********@ yahoo.com> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
I have the following code:

Dim BrowserLauncher As New ProcessStartInf o
BrowserLauncher .FileName = URL BrowserLauncher .CreateNoWindow =
False
BrowserLauncher .UseShellExecut e = True
BrowserLauncher .WindowStyle = ProcessWindowSt yle.Maximized
Process.Start(B rowserLauncher)

Each time I run this, IE does NOT open a new browser window but instead
uses a current browser I already have open.

Anyone know away around this? I'm coding from VB.NET windows form
trying to launch a web page.

Note: If I don't have any browser open at all, a new browser IS
launched.

Any help would be appreciated.

7078895

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3311
by: Terry | last post by:
When launching our application with Internet Explorer already opened, but not pointing to our web server, the session variables disappear. If you open I.E. after launching our app, it works fine. It also works fine if you have the option set to 'Reuse Windows for Lauching Shortcuts' checked in the I.E. properties and launch our app from a shortcut, but it fails it you launch it from the I.E. favorites or some other method that won't take...
0
1323
by: Matt | last post by:
I am running a exe from command line in my application and when I use ProcessStartInfo it seems to duplicate all the commands within the function. for instance I write a file. Without my ProcessStartInfo the file I write does what it is supposed to do and writes 1 file. With ProcessStartInfo it writes two files it even creates the random ListName for the file twice (different numbers). When I go look at it through the debug process...
6
5187
by: JerryP | last post by:
Hello, is there a way to launch the property dialogue for a directory from my c# app ? I would also like to launch the User Account Properties from Active Directory Users and Computers, and the properties window for an Object in Active Directory. Thanks for any hints.
0
2279
by: Leo Heska | last post by:
Hi I haven't seen the following problem mentioned anywhere We have an application written in VB.NET which executes a batch file (named startJob.cmd). We have discovered that if that batch file is too big, the last lines of the batch file will not run. For example, the following one-line batch file runs just fine when invoked from our VB.NET app echo %PATH% > c:\com\molex\plot\wmIntegration\logs\p0.lo but the following batch file...
3
4256
by: William Stacey [MVP] | last post by:
Is this a bug in fx2? I expect they did not carry forward all the StartInfo properties to api used with Username/Password. When you remove UserName/password, the window does not show as expected. private void button5_Click(object sender, EventArgs e) { Process p = new Process(); p.StartInfo.FileName = "cmd.exe"; p.StartInfo.Arguments = @"/c dir c:\windows\system32"; p.StartInfo.UseShellExecute = false;
2
2815
by: VJ | last post by:
I have the option "Reuse windows for launching shortcuts" checked in my IE. Now in my client code on a click event of a link, I do the following, Dim procWebPages As Process Dim strWebPageLink As String 'Build the web link here ' End Build web link here.. procWebPages = New System.Diagnostics.Process
2
6443
by: Alexander van Doormalen | last post by:
I am trying to run an external process (command tool) within a Windows Service with the specified account. When the application launches I get a error dialog with the following message: Application popup: <COMMAND TOOL> - Application Error : The application failed to initialize properly (0xc0000142). Click on OK to terminate the application. I use the following code to start the process (not relevant code is stripped):
1
9271
by: Vinny Vinn | last post by:
I am using the following C# code to print a PDF to a network printer. The document prints in portrait mode, I would like the document to print in Landscape mode. Is there/What is the argument that I need to supply to accomplish this? ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = FileName; startInfo.Verb = "printto"; startInfo.Arguments = @"\\server1\Printer1"; startInfo.CreateNoWindow = true;
2
3154
by: =?Utf-8?B?TWljaGVsbGUgTWFiZWxsZQ==?= | last post by:
I have the code below. It will open and print the pdf file (test.pdf) to the printer. ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.UseShellExecute = true; startInfo.Verb = "Print"; startInfo.CreateNoWindow = true; startInfo.WindowStyle = ProcessWindowStyle.Minimized; startInfo.FileName = @"E:\\barcode\test.pdf"; Process p = new Process();
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9196
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7651
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5548
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5686
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.