Click here to Skip to main content
15,923,083 members
Home / Discussions / C#
   

C#

 
Question[datagridview] get first column value of selected row Pin
benjamin yap6-Aug-08 19:21
benjamin yap6-Aug-08 19:21 
AnswerRe: [datagridview] get first column value of selected row Pin
Judah Gabriel Himango6-Aug-08 19:55
sponsorJudah Gabriel Himango6-Aug-08 19:55 
GeneralRe: [datagridview] get first column value of selected row Pin
benjamin yap6-Aug-08 20:23
benjamin yap6-Aug-08 20:23 
AnswerRe: [datagridview] get first column value of selected row Pin
Mosd8-Aug-08 1:22
Mosd8-Aug-08 1:22 
QuestionPlz Help me Pin
kalyan6-Aug-08 19:20
kalyan6-Aug-08 19:20 
AnswerRe: Plz Help me Pin
rah_sin6-Aug-08 19:44
professionalrah_sin6-Aug-08 19:44 
GeneralRe: Plz Help me Pin
kalyan6-Aug-08 19:56
kalyan6-Aug-08 19:56 
GeneralRe: Plz Help me Pin
Ashfield6-Aug-08 20:55
Ashfield6-Aug-08 20:55 
GeneralRe: Plz Help me Pin
kalyan6-Aug-08 22:01
kalyan6-Aug-08 22:01 
Questionprocess Pin
lankaudaranga6-Aug-08 19:17
lankaudaranga6-Aug-08 19:17 
AnswerRe: process Pin
rah_sin6-Aug-08 19:43
professionalrah_sin6-Aug-08 19:43 
AnswerRe: process Pin
Judah Gabriel Himango6-Aug-08 19:51
sponsorJudah Gabriel Himango6-Aug-08 19:51 
AnswerRe: process Pin
smilethat7-Aug-08 1:36
smilethat7-Aug-08 1:36 
you can start process using c# by this way:
using System.Diagnostics
.......
Process.Start("notepad.exe");
.......
Process.Start("cmd",@"/c mysqldump --user=root --password=123 mysql > c:\db.sql -t");//useful
.......
Process.Start("notepad.exe","c:\\record.txt");
.......
Process.Start("IEXPLORE.EXE","http://jnjx.126.com");
.......
Process.Start(@"C:\myFiles\MyApp.exe");
.....
and you can stop the process usingC# by this way:
//you can use the function
using System.Diagnostics;
..........
private void KillProcess(string processName)
{
Process myproc= new Process();
//
try
{
foreach(Process thisproc in Process.GetProcessesByName(processName))
{

thisproc.Kill();

}

}
catch(Exception Exc)
{
MessageBox.Show(Exc.Message);
}
}

//you can call this function like :KillProcess("iexplore.exe");
Questioncontent type of Http Pin
George_George6-Aug-08 18:52
George_George6-Aug-08 18:52 
AnswerRe: content type of Http Pin
leppie7-Aug-08 3:11
leppie7-Aug-08 3:11 
GeneralRe: content type of Http Pin
George_George8-Aug-08 23:54
George_George8-Aug-08 23:54 
Questionsql Pin
lankaudaranga6-Aug-08 18:01
lankaudaranga6-Aug-08 18:01 
AnswerRe: sql Pin
Judah Gabriel Himango6-Aug-08 19:52
sponsorJudah Gabriel Himango6-Aug-08 19:52 
QuestionC# random Images Pin
shadowhazard6-Aug-08 15:51
shadowhazard6-Aug-08 15:51 
AnswerRe: C# random Images Pin
Abhijit Jana6-Aug-08 17:53
professionalAbhijit Jana6-Aug-08 17:53 
QuestionWhat is the proper Domain Model for this relationship? Pin
Togakangaroo6-Aug-08 15:37
Togakangaroo6-Aug-08 15:37 
AnswerRe: What is the proper Domain Model for this relationship? Pin
Kjetil Svendsen6-Aug-08 22:36
Kjetil Svendsen6-Aug-08 22:36 
GeneralRe: What is the proper Domain Model for this relationship? Pin
Togakangaroo7-Aug-08 2:31
Togakangaroo7-Aug-08 2:31 
Question[Message Deleted] Pin
csharp-job6-Aug-08 14:48
csharp-job6-Aug-08 14:48 
AnswerRe: Any good C# programmers around Norwalk, CT - Full time position Pin
Mogaambo7-Aug-08 0:07
Mogaambo7-Aug-08 0:07 

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.