473,388 Members | 1,298 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,388 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 9058
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.