Click here to Skip to main content
15,919,434 members
Home / Discussions / C#
   

C#

 
GeneralRe: store datagridview items under a button [modified] Need help! Pin
OriginalGriff20-Aug-09 1:40
mveOriginalGriff20-Aug-09 1:40 
GeneralRe: store datagridview items under a button [modified] Need help! Pin
Member 474292220-Aug-09 2:08
Member 474292220-Aug-09 2:08 
GeneralRe: store datagridview items under a button [modified] Need help! Pin
OriginalGriff20-Aug-09 9:16
mveOriginalGriff20-Aug-09 9:16 
GeneralRe: store datagridview items under a button [modified] Need help! Pin
Member 474292220-Aug-09 21:38
Member 474292220-Aug-09 21:38 
GeneralRe: store datagridview items under a button [modified] Need help! Pin
OriginalGriff20-Aug-09 21:52
mveOriginalGriff20-Aug-09 21:52 
GeneralRe: store datagridview items under a button [modified] Need help! Pin
Member 474292222-Aug-09 2:08
Member 474292222-Aug-09 2:08 
QuestionGeneric Question - Implementing IEnumerable Pin
Programm3r19-Aug-09 23:37
Programm3r19-Aug-09 23:37 
AnswerRe: Generic Question - Implementing IEnumerable Pin
N a v a n e e t h20-Aug-09 0:08
N a v a n e e t h20-Aug-09 0:08 
GeneralRe: Generic Question - Implementing IEnumerable Pin
Programm3r20-Aug-09 1:40
Programm3r20-Aug-09 1:40 
AnswerRe: Generic Question - Implementing IEnumerable Pin
Nicholas Butler20-Aug-09 0:10
sitebuilderNicholas Butler20-Aug-09 0:10 
GeneralRe: Generic Question - Implementing IEnumerable Pin
Programm3r20-Aug-09 2:06
Programm3r20-Aug-09 2:06 
QuestionWhy doesn´t work the Code? Pin
nhqlbaislwfiikqraqnm19-Aug-09 22:48
nhqlbaislwfiikqraqnm19-Aug-09 22:48 
AnswerRe: Why doesn´t work the Code? Pin
padmanabhan N19-Aug-09 22:59
padmanabhan N19-Aug-09 22:59 
GeneralRe: Why doesn´t work the Code? Pin
nhqlbaislwfiikqraqnm19-Aug-09 23:05
nhqlbaislwfiikqraqnm19-Aug-09 23:05 
GeneralRe: Why doesn´t work the Code? Pin
padmanabhan N19-Aug-09 23:15
padmanabhan N19-Aug-09 23:15 
AnswerRe: Why doesn´t work the Code? Pin
musefan19-Aug-09 23:09
musefan19-Aug-09 23:09 
AnswerRe: Why doesn´t work the Code? Pin
Keith Barrow19-Aug-09 23:10
professionalKeith Barrow19-Aug-09 23:10 
GeneralRe: Why doesn´t work the Code? Pin
nhqlbaislwfiikqraqnm20-Aug-09 0:02
nhqlbaislwfiikqraqnm20-Aug-09 0:02 
It´s difficut to explain it!

I have a Server and a Client. the Client have many Buttons for examble open Word , shutdown,...
When i use this code in the Server i can click on open Word or shutdown both works!

if (get == "rWord")<br />
System.Diagnostics.Process.Start("winword");<br />
if (get == "rExcel")<br />
System.Diagnostics.Process.Start("excel");<br />
string[] get_Split = get.Split('~');<br />
int time = Convert.ToInt32(get_Split[1]);<br />
if (get.Contains("rshutdown"))<br />
{<br />
System.Diagnostics.Process.Start("shutdown", "-s -t " + time.ToString());<br />
}<br />
}


When i use this code where the sring[] is on the front place i can´t open word! but i can shutdown the Pc in x sec!?

<br />
string[] get_Split = get.Split('~');<br />
int time = Convert.ToInt32(get_Split[1]);<br />
if (get.Contains("rshutdown"))<br />
{<br />
System.Diagnostics.Process.Start("shutdown", "-s -t " + time.ToString());<br />
}<br />
}<br />
if (get == "rWord")<br />
System.Diagnostics.Process.Start("winword");<br />
if (get == "rExcel")<br />
System.Diagnostics.Process.Start("excel");


Why is that so that only the one command work?
GeneralRe: Why doesn´t work the Code? Pin
Luc Pattyn20-Aug-09 0:37
sitebuilderLuc Pattyn20-Aug-09 0:37 
GeneralRe: Why doesn´t work the Code? Pin
Keith Barrow20-Aug-09 0:39
professionalKeith Barrow20-Aug-09 0:39 
GeneralRe: Why doesn´t work the Code? Pin
Pete O'Hanlon20-Aug-09 1:02
mvePete O'Hanlon20-Aug-09 1:02 
GeneralRe: Why doesn´t work the Code? [modified] Pin
nhqlbaislwfiikqraqnm20-Aug-09 9:04
nhqlbaislwfiikqraqnm20-Aug-09 9:04 
Questionwrite at a particular position in a text document Pin
firefeet19-Aug-09 22:36
firefeet19-Aug-09 22:36 
AnswerRe: write at a particular position in a text document Pin
musefan19-Aug-09 23:13
musefan19-Aug-09 23:13 
AnswerRe: write at a particular position in a text document Pin
Keith Barrow19-Aug-09 23:24
professionalKeith Barrow19-Aug-09 23:24 

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.