Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. how to get the control panel programatically?

how to get the control panel programatically?

Scheduled Pinned Locked Moved C#
questioncsharptutorial
8 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    g_hemanth17
    wrote on last edited by
    #1

    i want to change the regional settings -> inputlocale programtically, how can i do that one using c#?

    hemanth

    L 1 Reply Last reply
    0
    • G g_hemanth17

      i want to change the regional settings -> inputlocale programtically, how can i do that one using c#?

      hemanth

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You can use CultureInfo for changing Regional Setting. Thanks Anubhava Dimri anubhava.prodata@gmail.com 9250168195 :laugh:

      G 1 Reply Last reply
      0
      • L Lost User

        You can use CultureInfo for changing Regional Setting. Thanks Anubhava Dimri anubhava.prodata@gmail.com 9250168195 :laugh:

        G Offline
        G Offline
        g_hemanth17
        wrote on last edited by
        #3

        but i want to change it on o/s level, not for the particular application or for the form... thanks for u r reply.

        hemanth

        modified on Thursday, March 13, 2008 2:47 AM

        L 1 Reply Last reply
        0
        • G g_hemanth17

          but i want to change it on o/s level, not for the particular application or for the form... thanks for u r reply.

          hemanth

          modified on Thursday, March 13, 2008 2:47 AM

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          U can change Runtime System Information by System Culture Informatin /Shell Command using Shell32; Shell objshell = new Shell(); objshell.ControlPanelItem("intl.cpl"); ANUBHAVA Dimri anubhava.prodata@gmail.com 925168195 :-O :rose:

          G L 2 Replies Last reply
          0
          • L Lost User

            U can change Runtime System Information by System Culture Informatin /Shell Command using Shell32; Shell objshell = new Shell(); objshell.ControlPanelItem("intl.cpl"); ANUBHAVA Dimri anubhava.prodata@gmail.com 925168195 :-O :rose:

            G Offline
            G Offline
            g_hemanth17
            wrote on last edited by
            #5

            Thank u for ur information, but it will open the regional settings, my intention is to with out user interaction i have to change the input locale value.

            hemanth

            1 Reply Last reply
            0
            • L Lost User

              U can change Runtime System Information by System Culture Informatin /Shell Command using Shell32; Shell objshell = new Shell(); objshell.ControlPanelItem("intl.cpl"); ANUBHAVA Dimri anubhava.prodata@gmail.com 925168195 :-O :rose:

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              I Have a new style of Changing Regional Setting of System at Runtime You Can Change Registry Value of System at Runtime Just Like for Date Change value of Date My_Computer/HKEY_USERS/S-1-5-21-682003330-162531612-725345543-1003/Control Panal/Internation/ Set the value of sShortDate "dd/MM/yyyy" Anubhava Dimri anubhava.prodata@gmail.com 9250168195 :rolleyes: :rose:

              L 1 Reply Last reply
              0
              • L Lost User

                I Have a new style of Changing Regional Setting of System at Runtime You Can Change Registry Value of System at Runtime Just Like for Date Change value of Date My_Computer/HKEY_USERS/S-1-5-21-682003330-162531612-725345543-1003/Control Panal/Internation/ Set the value of sShortDate "dd/MM/yyyy" Anubhava Dimri anubhava.prodata@gmail.com 9250168195 :rolleyes: :rose:

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                I u not want to use this method .These two function are getting and Setting for System Information. Public Const LOCALE_SSHORTDATE = &H1F Public Declare Function GetSystemDefaultLCID Lib "kernel32" () As Long Public Declare Function SetLocaleInfo Lib "kernel32" Alias "SetLocaleInfoA" (ByVal Locale As Long, ByVal LCType As Long, ByVal lpLCData As String) As Boolean Public Declare Function GetLocaleInfo Lib "kernel32" Alias "GetLocaleInfoA" (ByVal Locale As Long, ByVal LCType As Long, ByVal lpLCData As String, ByVal cchData As Long) As Long Anubhava Dimri :wtf: :rose:

                G 1 Reply Last reply
                0
                • L Lost User

                  I u not want to use this method .These two function are getting and Setting for System Information. Public Const LOCALE_SSHORTDATE = &H1F Public Declare Function GetSystemDefaultLCID Lib "kernel32" () As Long Public Declare Function SetLocaleInfo Lib "kernel32" Alias "SetLocaleInfoA" (ByVal Locale As Long, ByVal LCType As Long, ByVal lpLCData As String) As Boolean Public Declare Function GetLocaleInfo Lib "kernel32" Alias "GetLocaleInfoA" (ByVal Locale As Long, ByVal LCType As Long, ByVal lpLCData As String, ByVal cchData As Long) As Long Anubhava Dimri :wtf: :rose:

                  G Offline
                  G Offline
                  g_hemanth17
                  wrote on last edited by
                  #8

                  thank you very much....... Dimri. :cool:

                  hemanth

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups