473,385 Members | 1,347 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,385 software developers and data experts.

Simple question - How to popup a IE window in my C# WinForm application?

Thanks.
Nov 16 '05 #1
2 2500
You can make use of System.Diagnostics.Process.Start() method passing in the
URL you want to navigate to... For example
private void SomeMethod() {
System.Threading.Thread x = new System.Threading.Thread(new
System.Threading.ThreadStart(launchbrowser)) ;
x.Start();
}

private void launchbrowser() {
System.Diagnostics.Process.Start("www.microsoft.co m");
}

I create a new thread and call Process.Start from there so ur UI won't go
"blank" (look like if hung up)

Regards,
--
Angel J. Hernández M
MCSD

"Brian" <Br*********@hotmail.com> escribió en el mensaje
news:pC*********************@news20.bellglobal.com ...
Thanks.

Nov 16 '05 #2
Angel,

It works! Thank you very much.
Actually I want to integrate Paypal payment in my application at first, but
I can't find the right way to do that. So I have to use a popup IE to do it.
But I don't think it is the best way, at least it is not easy to catch the
feedback.
Do you have a better idea? Thanks a lot.

Brian
"Angel J. Hernández M." <an**********@hotmail.com> дÈëÓʼþ
news:OI**************@TK2MSFTNGP15.phx.gbl...
You can make use of System.Diagnostics.Process.Start() method passing in the URL you want to navigate to... For example
private void SomeMethod() {
System.Threading.Thread x = new System.Threading.Thread(new
System.Threading.ThreadStart(launchbrowser)) ;
x.Start();
}

private void launchbrowser() {
System.Diagnostics.Process.Start("www.microsoft.co m");
}

I create a new thread and call Process.Start from there so ur UI won't go
"blank" (look like if hung up)

Regards,

Nov 16 '05 #3

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

Similar topics

38
by: Shaun McKinnon | last post by:
HI...Here's my problem...I have a popup window that loads when i want it to, but it's not sized properly. I've set the size, but it doesn't seem to work. I've been on 8 different websites to find...
3
by: Treetop | last post by:
I would like to pass text to a popup window to save creating a new html file for each help topic. I would like to have a value for the heading, a value for the text, code for printing the help...
4
by: Newbie | last post by:
Hello all~ I have got some questions about popup window, hope that someone can help me.. m(_ _)m~thx~ when a popup window appear, can I force users to focus on the popup window "ONLY" that...
6
by: nizar.jouini | last post by:
I have web page that contains two links. link "a" and link "b". When I click on "a" a small window should pop up. when I click on "b" another small window should pop up. So what you should see now...
13
by: ldan | last post by:
Hi everybody, I would not consider myself an expert in javascript - but so far whatever I know, helped me reaching my goals. Recently I started to experience a lot of javascript errors related...
3
by: clsmith66 | last post by:
I am building an ASP.NET application where I have been required to make all the editing screens popup windows within the application. I didn't have any trouble creating the new windows but only...
4
by: sebastien1101 | last post by:
Hi, i like to open in a winform application a web url in a popup 150*200 How can i do this ?
7
by: YK | last post by:
Hi ! I saw that in Outlook Web Access (OWA) you get small notification window when a new e-mail is received even when the browser window is minimized and it appears at the right corner of the...
2
by: iloveprincess | last post by:
Hi, I'm developing windows application using VB.Net 2005. I would like to send 'save' message using 'SendMessage' API to the excel appication. I've already got a handle of the excel window with...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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
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...

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.