Click here to Skip to main content
15,886,199 members
Home / Discussions / C#
   

C#

 
GeneralRe: Asserts in release builds Pin
Heath Stewart22-Apr-04 11:18
protectorHeath Stewart22-Apr-04 11:18 
GeneralRe: Asserts in release builds Pin
Anders Molin22-Apr-04 11:22
professionalAnders Molin22-Apr-04 11:22 
GeneralRe: Asserts in release builds Pin
Heath Stewart22-Apr-04 11:36
protectorHeath Stewart22-Apr-04 11:36 
GeneralRe: Asserts in release builds Pin
Anders Molin22-Apr-04 12:01
professionalAnders Molin22-Apr-04 12:01 
Generalscanner Pin
cmarmr22-Apr-04 10:15
cmarmr22-Apr-04 10:15 
GeneralRe: scanner Pin
Dimitris Iliopoulos22-Apr-04 10:52
Dimitris Iliopoulos22-Apr-04 10:52 
GeneralOpen an URL and get an URL Pin
olreit22-Apr-04 9:38
olreit22-Apr-04 9:38 
GeneralRe: Open an URL and get an URL Pin
Heath Stewart22-Apr-04 9:51
protectorHeath Stewart22-Apr-04 9:51 
The latter is easy:
ProcessStartInfo psi = new ProcessStartInfo();
psi.UseShellExecute = true;
psi.FileName = "http://www.codeproject.com";
Process.Start(psi);
This will open the URL in the default browser (see below for how to use IE specifically). The former is not as easy, but also not difficult.

In your project, add a reference to %WINDIR%\System32\shdocvw.dll. This will create an interop assembly which defines the InternetExplorerClass class. This represents either a new or running instance of IE. You can use either Nagivate or Navigate2 to direct the user to a URL using IE. You can use the LocationURL to get the current URL for the top-level instance of IE.

 

Microsoft MVP, Visual C#
My Articles
GeneralExtrending properties - version - other version information dialog Pin
DavidNohejl22-Apr-04 9:33
DavidNohejl22-Apr-04 9:33 
GeneralRe: Extrending properties - version - other version information dialog Pin
Heath Stewart22-Apr-04 9:47
protectorHeath Stewart22-Apr-04 9:47 
GeneralRe: Extrending properties - version - other version information dialog Pin
DavidNohejl23-Apr-04 7:02
DavidNohejl23-Apr-04 7:02 
GeneralRe: Extrending properties - version - other version information dialog Pin
Heath Stewart23-Apr-04 7:19
protectorHeath Stewart23-Apr-04 7:19 
GeneralRe: Extrending properties - version - other version information dialog Pin
DavidNohejl24-Apr-04 5:05
DavidNohejl24-Apr-04 5:05 
GeneralConfiguration Files Pin
BrianEllis22-Apr-04 9:29
BrianEllis22-Apr-04 9:29 
GeneralRe: Configuration Files Pin
Heath Stewart22-Apr-04 9:46
protectorHeath Stewart22-Apr-04 9:46 
GeneralRe: Configuration Files Pin
BrianEllis22-Apr-04 10:06
BrianEllis22-Apr-04 10:06 
GeneralDesigner Question Pin
Jamie Nordmeyer22-Apr-04 9:15
Jamie Nordmeyer22-Apr-04 9:15 
GeneralRe: Designer Question Pin
Heath Stewart22-Apr-04 9:27
protectorHeath Stewart22-Apr-04 9:27 
GeneralRe: Designer Question Pin
Jamie Nordmeyer22-Apr-04 9:42
Jamie Nordmeyer22-Apr-04 9:42 
GeneralRe: Designer Question Pin
Heath Stewart22-Apr-04 9:44
protectorHeath Stewart22-Apr-04 9:44 
GeneralRe: Designer Question Pin
Jamie Nordmeyer22-Apr-04 9:49
Jamie Nordmeyer22-Apr-04 9:49 
GeneralMessage Removed Pin
22-Apr-04 8:46
wibblewibblewibble22-Apr-04 8:46 
GeneralRe: Missing Namespaces ... Pin
Heath Stewart22-Apr-04 8:49
protectorHeath Stewart22-Apr-04 8:49 
General[Message Deleted] Pin
Peter Nirschl22-Apr-04 8:14
Peter Nirschl22-Apr-04 8:14 
GeneralRe: Draw Shadow Pin
Heath Stewart22-Apr-04 8:50
protectorHeath Stewart22-Apr-04 8:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.