Click here to Skip to main content
15,123,585 members
Home / Discussions / C#
   

C#

 
GeneralRe: calling a method in c++ from c# Pin
N a v a n e e t h16-Feb-13 18:41
MemberN a v a n e e t h16-Feb-13 18:41 
GeneralRe: calling a method in c++ from c# Pin
N a v a n e e t h17-Feb-13 6:02
MemberN a v a n e e t h17-Feb-13 6:02 
GeneralRe: calling a method in c++ from c# Pin
bonosa13-Feb-13 7:48
Memberbonosa13-Feb-13 7:48 
QuestionDynamic Form Creation/Layout Pin
Matt U.12-Feb-13 5:21
MemberMatt U.12-Feb-13 5:21 
AnswerRe: Dynamic Form Creation/Layout Pin
Orjan Westin12-Feb-13 7:16
professionalOrjan Westin12-Feb-13 7:16 
GeneralRe: Dynamic Form Creation/Layout Pin
Matt U.12-Feb-13 7:51
MemberMatt U.12-Feb-13 7:51 
AnswerRe: Dynamic Form Creation/Layout Pin
PIEBALDconsult12-Feb-13 13:36
professionalPIEBALDconsult12-Feb-13 13:36 
QuestionException: Cannot open Servicexxx service on computer 'COMPUTER_NAME' Pin
NarVish12-Feb-13 2:18
MemberNarVish12-Feb-13 2:18 
I used below code to start service.
var sc = new System.ServiceProcess.ServiceController("ELSRegressionService");
if (sc.Status.ToString().Equals("Stopped"))
   sc.Start();


Its working fine, when logged in with Administrator credentials. If I login with other user credentials, it throws exception, "Cannot open Servicexxx service on computer 'COMPUTER_NAME'"
I would like to ask for credentials before the user tries to start service. So please guide me to check for credentials to start windows service programmatically. Thanks in advance
AnswerRe: Exception: Cannot open Servicexxx service on computer 'COMPUTER_NAME' Pin
N a v a n e e t h12-Feb-13 2:36
MemberN a v a n e e t h12-Feb-13 2:36 
AnswerRe: Exception: Cannot open Servicexxx service on computer 'COMPUTER_NAME' Pin
Dave Kreskowiak12-Feb-13 3:05
mveDave Kreskowiak12-Feb-13 3:05 
QuestionHow can I allow selected rows in a DataGridView (DGV) to be moved up or down in a button click. Pin
susanna.floora11-Feb-13 23:50
Membersusanna.floora11-Feb-13 23:50 
AnswerRe: How can I allow selected rows in a DataGridView (DGV) to be moved up or down in a button click. Pin
Richard MacCutchan12-Feb-13 1:27
mveRichard MacCutchan12-Feb-13 1:27 
GeneralRe: How can I allow selected rows in a DataGridView (DGV) to be moved up or down in a button click. Pin
susanna.floora12-Feb-13 1:56
Membersusanna.floora12-Feb-13 1:56 
Questioncontrol robots with c# !? Pin
ali_heidari_11-Feb-13 22:47
Memberali_heidari_11-Feb-13 22:47 
AnswerRe: control robots with c# !? Pin
Pete O'Hanlon11-Feb-13 23:11
mvePete O'Hanlon11-Feb-13 23:11 
AnswerRe: control robots with c# !? Pin
Jibesh11-Feb-13 23:19
professionalJibesh11-Feb-13 23:19 
Questiongame with Object-oriented programming Pin
saber_ershadi11-Feb-13 22:22
Membersaber_ershadi11-Feb-13 22:22 
AnswerRe: game with Object-oriented programming Pin
Jibesh11-Feb-13 23:22
professionalJibesh11-Feb-13 23:22 
GeneralRe: game with Object-oriented programming Pin
saber_ershadi12-Feb-13 0:55
Membersaber_ershadi12-Feb-13 0:55 
GeneralRe: game with Object-oriented programming Pin
lukeer12-Feb-13 20:32
Memberlukeer12-Feb-13 20:32 
AnswerRe: game with Object-oriented programming Pin
Richard MacCutchan11-Feb-13 23:22
mveRichard MacCutchan11-Feb-13 23:22 
AnswerRe: game with Object-oriented programming Pin
Thomas Daniels12-Feb-13 3:18
mvaThomas Daniels12-Feb-13 3:18 
QuestionHow to encryp video file and decrypt ? Pin
saber_ershadi11-Feb-13 7:10
Membersaber_ershadi11-Feb-13 7:10 
AnswerRe: How to encryp video file and decrypt ? Pin
Richard MacCutchan11-Feb-13 7:31
mveRichard MacCutchan11-Feb-13 7:31 
AnswerRe: How to encryp video file and decrypt ? Pin
Dave Kreskowiak11-Feb-13 8:29
mveDave Kreskowiak11-Feb-13 8:29 

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.