| | |
Open IE with a specific link
Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved |
I want to open IE from a forms application. A bit like daniweb does it btw.!
I have the following in a button click eventhandler:
This is what I want, but it just opens a IE window.
The next code goes to the website I want, but opens it in a maximised window or it opens in IE if it is already open which is not what I want.
I googled,daniwebbed etc. for hours, perhaps with bad search strings, but could not find an answer.
Anybody any suggestion? It must be simple in my opinion, but my mind has one of its off days I think...
I have the following in a button click eventhandler:
C# Syntax (Toggle Plain Text)
Process MyProcess = new Process(); //string MyPath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles); MyProcess.StartInfo.Domain = ""; MyProcess.StartInfo.FileName = "iexplore.exe"; //MyPath + "\\iexplore.exe"; MyProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal; MyProcess.StartInfo.CreateNoWindow = false; MyProcess.Start();
The next code goes to the website I want, but opens it in a maximised window or it opens in IE if it is already open which is not what I want.
C# Syntax (Toggle Plain Text)
string link = "www.google.com"; System.Diagnostics.Process.Start(link);
Anybody any suggestion? It must be simple in my opinion, but my mind has one of its off days I think...
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Make love, no war. Cave ab homine unius libri.
Danny
Most of the time I Safari. But when I C# I'm under Vista on a Mac. So it's IE, I don't care. My second option does almost what I want. But I want my site to always open in a separate window which is a bit smaller than the applicationwindow that opened it. At least daniweb does it, so why can I? With a little help from my fiends in this case...
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Make love, no war. Cave ab homine unius libri.
Danny
•
•
•
•
Originally Posted by LizR
Does it have to be IE?
Thanks LizR!! Problem solved!! This is even better because this way I can open just only one website, just like I wanted.
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Make love, no war. Cave ab homine unius libri.
Danny
![]() |
Similar Threads
- Link Popularity (Search Engine Optimization)
- ( Internal Link in a text document) (Mac Software)
- Open In New Window Php (PHP)
- IE 6 Can't open new windows from link clicked (Web Browsers)
- Looking for open source gateway (Java)
- Loading a specific fram (HTML and CSS)
- linking to specific frame arrangements? (Computer Science)
Other Threads in the C# Forum
- Previous Thread: Problems with mobile app
- Next Thread: Capturing contents of launching file
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access algorithm array barchart bitmap box buttons c# chat check checkbox class client color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees draganddrop drawing encryption enum event excel file files form format forms ftp function gdi+ httpwebrequest image index input install java label list listbox listener login mandelbrot math mouseclick mysql networking object operator oracle path photoshop picturebox pixelinversion post prime programming radians regex remote remoting resource richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml






