Click here to Skip to main content
15,902,777 members
Home / Discussions / C#
   

C#

 
QuestionMulti tab interface question? Pin
TrooperIronMan2-Jan-07 13:31
TrooperIronMan2-Jan-07 13:31 
AnswerRe: Multi tab interface question? Pin
Nader Elshehabi2-Jan-07 13:41
Nader Elshehabi2-Jan-07 13:41 
GeneralRe: Multi tab interface question? Pin
TrooperIronMan3-Jan-07 1:38
TrooperIronMan3-Jan-07 1:38 
GeneralRe: Multi tab interface question? Pin
TrooperIronMan3-Jan-07 3:28
TrooperIronMan3-Jan-07 3:28 
GeneralRe: Multi tab interface question? Pin
Nader Elshehabi3-Jan-07 4:14
Nader Elshehabi3-Jan-07 4:14 
GeneralRe: Multi tab interface question? Pin
TrooperIronMan3-Jan-07 6:41
TrooperIronMan3-Jan-07 6:41 
GeneralRe: Multi tab interface question? Pin
Nader Elshehabi3-Jan-07 13:06
Nader Elshehabi3-Jan-07 13:06 
QuestionControl Panel applets Pin
dsovino2-Jan-07 11:54
dsovino2-Jan-07 11:54 
Hi, i'm developing an app where i want to detect internet connection status.

I have a linked label on a statusbar (where i show if i'm connected or not). On the click event of the label, i have this code:

try
{
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.FileName = "cmd";
proc.StartInfo.Arguments = "rundll32.exe shell32.dll,Control_RunDLL ncpa.cpl,,0";
proc.Start();
//proc.WaitForExit();
}
catch { }

As you can tell, the idea is to show the Network Connections avaible on the target system.
I searched a while for it, and since C# doesn't support Shell, this is supossed to be the way. D'Oh! | :doh:

I'm just getting the cmd "poped up". It doesn't call the arguments. When I copy/paste the arguments string on cmd, i get the Network Connections window opened, but cmd remains open as well.

Is there any other way to call the control panel applets in c#? If not, is there any way that to emulate the "Run..." from Start menu with c#?

Thanks for your time fellas. Laugh | :laugh:

daniel sovino
AnswerRe: Control Panel applets Pin
Nader Elshehabi2-Jan-07 12:32
Nader Elshehabi2-Jan-07 12:32 
GeneralRe: Control Panel applets Pin
dsovino2-Jan-07 12:39
dsovino2-Jan-07 12:39 
Questionwhant to compile pascal document for c# Pin
conemajstor2-Jan-07 11:33
conemajstor2-Jan-07 11:33 
AnswerRe: whant to compile pascal document for c# Pin
Christian Graus2-Jan-07 16:00
protectorChristian Graus2-Jan-07 16:00 
GeneralRe: whant to compile pascal document for c# Pin
Uwe Keim2-Jan-07 20:35
sitebuilderUwe Keim2-Jan-07 20:35 
QuestionHow to assign a new Main Form!?? Pin
ferdna2-Jan-07 11:08
ferdna2-Jan-07 11:08 
AnswerRe: How to assign a new Main Form!?? Pin
Colin Angus Mackay2-Jan-07 11:22
Colin Angus Mackay2-Jan-07 11:22 
GeneralRe: How to assign a new Main Form!?? Pin
ferdna2-Jan-07 11:46
ferdna2-Jan-07 11:46 
GeneralRe: How to assign a new Main Form!?? Pin
Colin Angus Mackay2-Jan-07 12:01
Colin Angus Mackay2-Jan-07 12:01 
GeneralRe: How to assign a new Main Form!?? Pin
ferdna2-Jan-07 12:10
ferdna2-Jan-07 12:10 
GeneralRe: How to assign a new Main Form!?? Pin
Colin Angus Mackay2-Jan-07 12:14
Colin Angus Mackay2-Jan-07 12:14 
GeneralRe: How to assign a new Main Form!?? Pin
ferdna2-Jan-07 12:24
ferdna2-Jan-07 12:24 
GeneralRe: How to assign a new Main Form!?? Pin
JoeRip2-Jan-07 13:53
JoeRip2-Jan-07 13:53 
GeneralRe: How to assign a new Main Form!?? Pin
ferdna15-Jan-07 10:45
ferdna15-Jan-07 10:45 
AnswerRe: How to assign a new Main Form!?? Pin
ferdna15-Jan-07 10:46
ferdna15-Jan-07 10:46 
QuestionHow to check that the registry key exists Pin
CodeItWell2-Jan-07 11:06
CodeItWell2-Jan-07 11:06 
AnswerRe: How to check that the registry key exists Pin
Stefan Troschuetz2-Jan-07 11:26
Stefan Troschuetz2-Jan-07 11:26 

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.