473,395 Members | 1,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

winform - open up a NEW default browser window

Currently my app is doing

System.Diagnostics.Process.Start("http://www.yahoo.com");

this successfully launches a browser window but it RE-USES an existing
window if there is an existing window! Sometimes the existing window is
NOT resizeable because it is a pop-up ad.

So even if my users have a bunch of javascript pop-up ads that are not
resizeable, I want my C# code to launch a new browser window in a new
process. I don't want it to reuse existing windows.
I have seen several apps do this. for example the yahoo IM client.

Jul 21 '05 #1
2 9059
Try doing this:

System.Diagnostics.Process.Start("iexplore http://www.yahoo.com");

This way you launch a new process
Chris
<th*****************@yahoo.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
Currently my app is doing

System.Diagnostics.Process.Start("http://www.yahoo.com");

this successfully launches a browser window but it RE-USES an existing
window if there is an existing window! Sometimes the existing window is
NOT resizeable because it is a pop-up ad.

So even if my users have a bunch of javascript pop-up ads that are not
resizeable, I want my C# code to launch a new browser window in a new
process. I don't want it to reuse existing windows.
I have seen several apps do this. for example the yahoo IM client.

Jul 21 '05 #2
In addition to Chris,

What you use now is for every (default) browser, the sample for Chris only
for IE.

This problem is largely discussed in the newsgroup language.vb, there was no
other answer found than the one Chris shows now for opening a new window.

Cor
Jul 21 '05 #3

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

Similar topics

6
by: lukeo | last post by:
I'm shelling out to an .asp (or htm) page from an application. I want to show this in a window without the address bar, etc... Is there a way I can redirect this page using javascript to a page...
2
by: venkatesh | last post by:
Hi Members, I have used the below mentioned code to open a html page in a new browser. The window size is 200 x 300. In that browser, I've given code to open another browser of the same size....
10
by: Marshall Dudley | last post by:
When I do the following line in Netscape, the popup loads as it should, but the parent window usually, but not always, reloads as well. <a href="#"...
29
by: wayne | last post by:
Hey there... I'm having some problems passing url parameters with an open.window command. I'm not terribly familiar with java script but here is the code below. When executed it opens the...
3
by: Bob | last post by:
I am trying to create a popup page (to act as a menu) from a parent page. When the parent page (index.jsp) calls my popup function (see below) it will properly open the correct size browser window...
2
by: thomasamillergoogle | last post by:
Currently my app is doing System.Diagnostics.Process.Start("http://www.yahoo.com"); this successfully launches a browser window but it RE-USES an existing window if there is an existing...
6
by: qysbc | last post by:
I have a web page and there is a link to open a TIFF file. The way I do it is to have the server code open a binary stream, set the content type to "image/tiff" and call Response.BinaryWrite. On...
7
by: Toccoa | last post by:
After considerable googling - I mean searching with Google(r) - I could not find javascript on a button or <a href=... to close a window in the latest versions of IE and FireFox. There seemed...
2
by: jyanmin.fang | last post by:
Hi, In my current project, I need to embed an .NET winform usercontrol in the aspx page (via <Objecttag). This winform usercontrol has an event called DoEvent (void DoEvent()). This winform...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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,...

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.