Click here to Skip to main content
15,903,523 members
Home / Discussions / C#
   

C#

 
GeneralCalling a Web Method from a Timer Method Pin
mafia14421-Mar-03 1:14
mafia14421-Mar-03 1:14 
Generalcircular ref in control <--> form Pin
Roger Alsing20-Mar-03 22:14
Roger Alsing20-Mar-03 22:14 
General[RegExp] Capture class and Group class Pin
Nish Nishant20-Mar-03 15:53
sitebuilderNish Nishant20-Mar-03 15:53 
GeneralRe: [RegExp] Capture class and Group class Pin
Anonymous20-Mar-03 19:06
Anonymous20-Mar-03 19:06 
GeneralRe: [RegExp] Capture class and Group class Pin
Jim Hollenhorst20-Mar-03 19:52
Jim Hollenhorst20-Mar-03 19:52 
GeneralRe: [RegExp] Capture class and Group class Pin
Nish Nishant20-Mar-03 20:37
sitebuilderNish Nishant20-Mar-03 20:37 
GeneralRe: [RegExp] Capture class and Group class Pin
Nish Nishant20-Mar-03 20:38
sitebuilderNish Nishant20-Mar-03 20:38 
GeneralDefault Browser Pin
Paul Riley20-Mar-03 14:32
Paul Riley20-Mar-03 14:32 
I'm trying to launch the default browser, with a given URL in a particular event handler. The best I have so far is:
using (RegistryKey rkey = Registry.LocalMachine.CreateSubKey(@"SOFTWARE\Classes\http\shell\open\command"))
{
	string val = rkey.GetValue(String.Empty).ToString();
	string browser = val.Split('\"')[1];
	Process.Start(browser, URL);
}
This works perfectly well on my machine but IE is the only browser I have installed, let alone the default.

Can anyone tell me
a) If there's a better place to look for the default browser and
b) If Netscape, Opera, et al can be parsed out of that key using the same Split?

Paul
We all will feed the worms and trees
So don't be shy
- Queens of the Stone Age, Mosquito Song

GeneralRe: Default Browser Pin
Stephane Rodriguez.20-Mar-03 19:12
Stephane Rodriguez.20-Mar-03 19:12 
GeneralRe: Default Browser Pin
Paul Riley20-Mar-03 23:40
Paul Riley20-Mar-03 23:40 
GeneralRe: Default Browser Pin
Daniel Turini20-Mar-03 23:10
Daniel Turini20-Mar-03 23:10 
GeneralRe: Default Browser Pin
Paul Riley20-Mar-03 23:42
Paul Riley20-Mar-03 23:42 
QuestionAdding Line Numbers to a text box? Pin
se99ts20-Mar-03 11:05
se99ts20-Mar-03 11:05 
AnswerRe: Adding Line Numbers to a text box? Pin
Brandon B20-Mar-03 12:19
Brandon B20-Mar-03 12:19 
GeneralRe: Adding Line Numbers to a text box? Pin
se99ts20-Mar-03 12:23
se99ts20-Mar-03 12:23 
GeneralHINSTANCE Pin
Andrei Matei20-Mar-03 9:29
Andrei Matei20-Mar-03 9:29 
GeneralRe: HINSTANCE Pin
Stephane Rodriguez.20-Mar-03 21:27
Stephane Rodriguez.20-Mar-03 21:27 
GeneralTreeview 3 State checkbox Pin
vlusardi20-Mar-03 9:09
vlusardi20-Mar-03 9:09 
GeneralRe: Treeview 3 State checkbox Pin
Stephane Rodriguez.20-Mar-03 21:35
Stephane Rodriguez.20-Mar-03 21:35 
GeneralRe: Treeview 3 State checkbox Pin
Member 72690920-Mar-04 8:12
Member 72690920-Mar-04 8:12 
GeneralShutting down a W2K computer Pin
converdb20-Mar-03 9:04
converdb20-Mar-03 9:04 
GeneralRe: Shutting down a W2K computer Pin
Mark Conger20-Mar-03 10:14
Mark Conger20-Mar-03 10:14 
GeneralRe: Shutting down a W2K computer Pin
VoidMainVoid30-Mar-03 16:26
VoidMainVoid30-Mar-03 16:26 
GeneralRe: Shutting down a W2K computer Pin
converdb2-Apr-03 7:32
converdb2-Apr-03 7:32 
GeneralInter-app communication in C# Pin
Strat61320-Mar-03 7:06
Strat61320-Mar-03 7:06 

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.