Click here to Skip to main content
15,885,365 members
Home / Discussions / C#
   

C#

 
QuestionMedia player control Pin
yesu prakash8-Apr-09 20:44
yesu prakash8-Apr-09 20:44 
AnswerRe: Media player control Pin
12Code8-Apr-09 20:52
12Code8-Apr-09 20:52 
QuestionHelp to me to find simple method for days of month Pin
M Riaz Bashir8-Apr-09 20:30
M Riaz Bashir8-Apr-09 20:30 
AnswerRe: Help to me to find simple method for days of month Pin
DaveyM698-Apr-09 20:37
professionalDaveyM698-Apr-09 20:37 
GeneralRe: Help to me to find simple method for days of month Pin
M Riaz Bashir8-Apr-09 20:39
M Riaz Bashir8-Apr-09 20:39 
QuestionOracle.DataAccess.Client - DbProviderFactories.GetFactory [modified] Pin
devvvy8-Apr-09 20:25
devvvy8-Apr-09 20:25 
AnswerRe: Oracle.DataAccess.Client - DbProviderFactories.GetFactory Pin
devvvy9-Apr-09 16:00
devvvy9-Apr-09 16:00 
Questionproblem with SetSystemTime() fucntion of Kernel32.dll Pin
cppwxwidgetsss8-Apr-09 19:34
cppwxwidgetsss8-Apr-09 19:34 
hi all
i want to use the following code to set the time of the system by some numericUpDown (hour,minute,second) objects that user input, but i don't know where is the problem when i set the time it changes but it does n't correctly change, please have a look at it, it should be something that i may do not know about it, i just have changed a code that i found on the internet, here is the code:
[StructLayout(LayoutKind.Sequential)]
        public struct MyDateTime
        {

            public ushort Year;
            public ushort Month;
            public ushort wDayOfWeek;
            public ushort Day;
            public ushort Hour;
            public ushort Minute;
            public ushort Second;
            public ushort Milisecond;

        }


        
        [DllImport("kernel32.dll", EntryPoint = "SetSystemTime", SetLastError = true)]

        private static extern bool SetSystemTime(ref MyDateTime st);



        [DllImport("kernel32.dll", EntryPoint = "GetSystemTime", SetLastError = true)]

        private extern static void GetSystemTime(ref MyDateTime sysTime);


        MyDateTime Persian;

.
.
.
             GetSystemTime(ref Persian);
             Persian.Hour = (ushort) hour.Value;
             Persian.Minute = (ushort) minute.Value;
             Persian.Second = (ushort) second.Value;

             SetSystemTime(ref Persian );

thank you everybody
AnswerRe: problem with SetSystemTime() fucntion of Kernel32.dll Pin
dojohansen9-Apr-09 1:45
dojohansen9-Apr-09 1:45 
GeneralRe: problem with SetSystemTime() fucntion of Kernel32.dll Pin
dojohansen9-Apr-09 1:50
dojohansen9-Apr-09 1:50 
GeneralRe: problem with SetSystemTime() fucntion of Kernel32.dll Pin
Sujeevan Kumar22-Jun-09 5:08
Sujeevan Kumar22-Jun-09 5:08 
QuestionShowing Hidden Files... Pin
Rajdeep.NET is BACK8-Apr-09 19:28
Rajdeep.NET is BACK8-Apr-09 19:28 
AnswerRe: Showing Hidden Files... Pin
Anubhava Dimri8-Apr-09 20:28
Anubhava Dimri8-Apr-09 20:28 
AnswerRe: Showing Hidden Files... Pin
N a v a n e e t h8-Apr-09 20:30
N a v a n e e t h8-Apr-09 20:30 
QuestionList View Sorting Pin
satsumatable8-Apr-09 19:01
satsumatable8-Apr-09 19:01 
AnswerRe: List View Sorting Pin
Anubhava Dimri8-Apr-09 20:54
Anubhava Dimri8-Apr-09 20:54 
QuestionConversion of Structure to Byte Array Pin
lnmca8-Apr-09 19:01
lnmca8-Apr-09 19:01 
AnswerRe: Conversion of Structure to Byte Array Pin
satsumatable8-Apr-09 19:04
satsumatable8-Apr-09 19:04 
GeneralRe: Conversion of Structure to Byte Array Pin
lnmca8-Apr-09 22:57
lnmca8-Apr-09 22:57 
QuestionListening port Pin
yesu prakash8-Apr-09 18:43
yesu prakash8-Apr-09 18:43 
AnswerRe: Listening port Pin
satsumatable8-Apr-09 19:17
satsumatable8-Apr-09 19:17 
QuestionOracle 10g Express - support .NET TransactionScope? Pin
devvvy8-Apr-09 17:48
devvvy8-Apr-09 17:48 
Questionhow to got the programming is compiled by x64 or x86 Pin
Dracula Wang8-Apr-09 17:20
Dracula Wang8-Apr-09 17:20 
AnswerRe: how to got the programming is compiled by x64 or x86 Pin
devvvy8-Apr-09 17:51
devvvy8-Apr-09 17:51 
GeneralRe: how to got the programming is compiled by x64 or x86 Pin
Dracula Wang8-Apr-09 19:44
Dracula Wang8-Apr-09 19:44 

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.