CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2004
    Posts
    561

    Is there anything in C# that allows me to...

    Is there anything that allows me to receive an event if the user changes their windows time zone? Thanks,

  2. #2
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    Re: Is there anything in C# that allows me to...

    I would look at WMI, but it's just a hint, I've no direct experience with it.
    • Make it run.
    • Make it right.
    • Make it fast.

    Don't hesitate to rate my post.

  3. #3
    Join Date
    Mar 2008
    Location
    IRAN
    Posts
    811

    Re: Is there anything in C# that allows me to...

    i am not sure...but if windows release a message with hex code after chaning the time zone then you can override WndProc and catch that message:

    pesudo code:

    Code:
    protected override void WndProc(ref Message mess)
    
      private const int Time_Zone_Changed = 0x(some hex);
    
     if (mess.Msg == Time_Zone_Changed )
     //do something
    Please rate my post if it was helpful for you.
    Java, C#, C++, PHP, ASP.NET
    SQL Server, MySQL
    DirectX
    MATH
    Touraj Ebrahimi
    [toraj_e] [at] [yahoo] [dot] [com]

  4. #4
    Join Date
    Sep 2004
    Posts
    561

    Re: Is there anything in C# that allows me to...

    Thanks everyone

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured