Click here to Skip to main content
15,886,137 members
Home / Discussions / C#
   

C#

 
QuestionDrawing, Drag Drop Problem in custom control Pin
crazymubashir25-Apr-06 20:56
crazymubashir25-Apr-06 20:56 
Questionhow to deploy a project with framework Pin
dayakar_dn25-Apr-06 20:29
dayakar_dn25-Apr-06 20:29 
AnswerRe: how to deploy a project with framework Pin
abhinish25-Apr-06 21:04
abhinish25-Apr-06 21:04 
GeneralRe: how to deploy a project with framework Pin
dayakar_dn25-Apr-06 22:08
dayakar_dn25-Apr-06 22:08 
QuestionShutdown PC Pin
phucoi25-Apr-06 19:58
phucoi25-Apr-06 19:58 
AnswerRe: Shutdown PC Pin
CWIZO25-Apr-06 21:38
CWIZO25-Apr-06 21:38 
AnswerRe: Shutdown PC Pin
Mohammad Dayyan11-Sep-09 9:29
Mohammad Dayyan11-Sep-09 9:29 
AnswerRe: Shutdown PC Pin
Mohammad Dayyan11-Sep-09 9:29
Mohammad Dayyan11-Sep-09 9:29 
using System.Management;

ManagementBaseObject mboShutdown = null;
ManagementClass mcWin32 = new ManagementClass("Win32_OperatingSystem");
mcWin32.Get();
// You can't shutdown without security privileges
mcWin32.Scope.Options.EnablePrivileges = true;
ManagementBaseObject mboShutdownParams = mcWin32.GetMethodParameters("Win32Shutdown");
// Flag 1 means we want to shut down the system
mboShutdownParams["Flags"] = "1";
mboShutdownParams["Reserved"] = "0";
foreach (ManagementObject manObj in mcWin32.GetInstances())
    mboShutdown = manObj.InvokeMethod("Win32Shutdown", mboShutdownParams, null);

QuestionHow to retrieve attribute of type Time without time zone from postgreSQL? Pin
Kranti125198425-Apr-06 19:09
Kranti125198425-Apr-06 19:09 
QuestionAssigning values to RecordNumber in Crystal reports Pin
q2sampath25-Apr-06 18:06
q2sampath25-Apr-06 18:06 
Questioncode for detecting an IP address Pin
raniam25-Apr-06 14:13
raniam25-Apr-06 14:13 
AnswerRe: code for detecting an IP address Pin
Graham Nimbley25-Apr-06 15:03
Graham Nimbley25-Apr-06 15:03 
Questionbitmap from a Graphics object Pin
likefood25-Apr-06 13:28
likefood25-Apr-06 13:28 
AnswerRe: bitmap from a Graphics object Pin
Graham Nimbley25-Apr-06 13:57
Graham Nimbley25-Apr-06 13:57 
GeneralRe: bitmap from a Graphics object Pin
likefood25-Apr-06 14:00
likefood25-Apr-06 14:00 
AnswerRe: bitmap from a Graphics object Pin
Robert Rohde25-Apr-06 18:16
Robert Rohde25-Apr-06 18:16 
GeneralRe: bitmap from a Graphics object Pin
likefood26-Apr-06 6:54
likefood26-Apr-06 6:54 
GeneralRe: bitmap from a Graphics object Pin
Robert Rohde26-Apr-06 8:03
Robert Rohde26-Apr-06 8:03 
GeneralRe: bitmap from a Graphics object Pin
likefood26-Apr-06 11:05
likefood26-Apr-06 11:05 
QuestionFile Copy Problem (C# Newb) Pin
teejayem25-Apr-06 12:44
teejayem25-Apr-06 12:44 
AnswerRe: File Copy Problem (C# Newb) Pin
Graham Nimbley25-Apr-06 13:21
Graham Nimbley25-Apr-06 13:21 
GeneralRe: File Copy Problem (C# Newb) Pin
teejayem25-Apr-06 13:29
teejayem25-Apr-06 13:29 
AnswerRe: File Copy Problem (C# Newb) Pin
Guffa25-Apr-06 13:23
Guffa25-Apr-06 13:23 
GeneralRe: File Copy Problem (C# Newb) Pin
teejayem25-Apr-06 13:31
teejayem25-Apr-06 13:31 
Questionsum up values in DataTable Pin
kani9825-Apr-06 11:34
kani9825-Apr-06 11:34 

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.