Click here to Skip to main content
15,899,026 members
Home / Discussions / C#
   

C#

 
Questionsocket usage permission Pin
mahraja14-Jun-08 9:41
mahraja14-Jun-08 9:41 
QuestionExcel Help Pin
MumbleB14-Jun-08 6:22
MumbleB14-Jun-08 6:22 
AnswerRe: Excel Help Pin
parth.p14-Jun-08 16:06
parth.p14-Jun-08 16:06 
QuestionC# navigating to top of page Pin
nyjcr14-Jun-08 5:43
nyjcr14-Jun-08 5:43 
AnswerRe: C# navigating to top of page Pin
N a v a n e e t h14-Jun-08 5:55
N a v a n e e t h14-Jun-08 5:55 
Questionhow to can i run or execute another program from C# ... like winword for example ?? Pin
Zero coder14-Jun-08 3:44
Zero coder14-Jun-08 3:44 
AnswerRe: how to can i run or execute another program from C# ... like winword for example ?? Pin
Christian Graus14-Jun-08 3:47
protectorChristian Graus14-Jun-08 3:47 
AnswerRe: how to can i run or execute another program from C# ... like winword for example ?? [modified] Pin
erfi15-Jun-08 4:20
erfi15-Jun-08 4:20 
here is a simple application I wrote :
there is a combobox on my form which lets user to select a program.
in this case i just added 3 programs to it : (mediaplayer, freecell, MinesWeeper)
also you can add the command line arguments to your process.
by clicking the run button the fallowing code will run.
private void runbtn_Click(object sender, System.EventArgs e)
{            
	Process myProcess = new Process();
        int selectedIndex = comboBox1.SelectedIndex;

        switch (selectedIndex)
        {
            case 0:
                myProcess.StartInfo.FileName = "C:/Program Files/Windows Media Player/wmplayer.exe";
                //myProcess.StartInfo.Arguments = "g:\\path\\filename.mp3";                
                break;
            case 1:
                myProcess.StartInfo.FileName = "c:/windows/system32/winmine.exe";
                break;
            case 2:
                myProcess.StartInfo.FileName = "c:/windows/system32/freecell.exe";
                break;
            default:
                myProcess.StartInfo.FileName = "C:/Program Files/Windows Media Player/wmplayer.exe";
                break;
        }
	myProcess.Start();
}


sometimes 0 can be 1

modified on Sunday, June 15, 2008 10:26 AM

QuestionProblem for CCD Image Display in my Application Pin
PowerOn14-Jun-08 2:41
PowerOn14-Jun-08 2:41 
AnswerRe: Problem for CCD Image Display in my Application Pin
Christian Graus14-Jun-08 3:47
protectorChristian Graus14-Jun-08 3:47 
QuestionHelp: ReadPrint(winspool) & C# Pin
_CMD_14-Jun-08 2:26
_CMD_14-Jun-08 2:26 
QuestionInvoking SSIS PAckage from C# Pin
Member 400849213-Jun-08 22:40
Member 400849213-Jun-08 22:40 
QuestionNear-static class [modified] Pin
PIEBALDconsult13-Jun-08 13:25
mvePIEBALDconsult13-Jun-08 13:25 
AnswerRe: Near-static class Pin
MarkB77713-Jun-08 14:29
MarkB77713-Jun-08 14:29 
GeneralRe: Near-static class Pin
PIEBALDconsult13-Jun-08 15:28
mvePIEBALDconsult13-Jun-08 15:28 
GeneralRe: Near-static class Pin
MarkB77713-Jun-08 16:01
MarkB77713-Jun-08 16:01 
GeneralRe: Near-static class Pin
leppie13-Jun-08 21:56
leppie13-Jun-08 21:56 
GeneralRe: Near-static class Pin
PIEBALDconsult16-Jun-08 10:01
mvePIEBALDconsult16-Jun-08 10:01 
AnswerRe: Near-static class Pin
Ed.Poore13-Jun-08 20:50
Ed.Poore13-Jun-08 20:50 
GeneralRe: Near-static class Pin
PIEBALDconsult14-Jun-08 5:12
mvePIEBALDconsult14-Jun-08 5:12 
GeneralRe: Near-static class Pin
Ed.Poore14-Jun-08 8:12
Ed.Poore14-Jun-08 8:12 
GeneralRe: Near-static class Pin
PIEBALDconsult14-Jun-08 18:45
mvePIEBALDconsult14-Jun-08 18:45 
GeneralRe: Near-static class Pin
Ed.Poore14-Jun-08 21:18
Ed.Poore14-Jun-08 21:18 
GeneralRe: Near-static class Pin
PIEBALDconsult15-Jun-08 7:45
mvePIEBALDconsult15-Jun-08 7:45 
GeneralRe: Near-static class Pin
Ed.Poore15-Jun-08 9:08
Ed.Poore15-Jun-08 9:08 

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.