473,799 Members | 3,178 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 3502
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
3310
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
2278
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
4254
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
2812
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
9270
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
9686
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
10250
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10222
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10026
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9068
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
7564
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
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2938
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.