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
  1. Home
  2. General Programming
  3. Visual Basic
  4. System DateTimeFormat

System DateTimeFormat

Scheduled Pinned Locked Moved Visual Basic
question
3 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.
  • V Offline
    V Offline
    V 2
    wrote on last edited by
    #1

    Hi, I wanna change the system date time format and resolution For system date time format i used this code Dim tmpCurrentCulture As System.Globalization.CultureInfo tmpCurrentCulture = New System.Globalization.CultureInfo("en-US") tmpCurrentCulture.DateTimeFormat.ShortDatePattern = "MM/dd/yyyy" System.Threading.Thread.CurrentThread.CurrentCulture = tmpCurrentCulture MsgBox(System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern.ToString) it shows the format MM/dd/yyyy but when i check i controlpanel->regional settings->customise date the format is not changed to MM/dd/yyyy And second thing how can i change the resolution 1024 by 768 pixcel Thanks with anticipations

    Unless u don't give ur hundred percent whatever u r doing till there is no result of ur work...

    A 1 Reply Last reply
    0
    • V V 2

      Hi, I wanna change the system date time format and resolution For system date time format i used this code Dim tmpCurrentCulture As System.Globalization.CultureInfo tmpCurrentCulture = New System.Globalization.CultureInfo("en-US") tmpCurrentCulture.DateTimeFormat.ShortDatePattern = "MM/dd/yyyy" System.Threading.Thread.CurrentThread.CurrentCulture = tmpCurrentCulture MsgBox(System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern.ToString) it shows the format MM/dd/yyyy but when i check i controlpanel->regional settings->customise date the format is not changed to MM/dd/yyyy And second thing how can i change the resolution 1024 by 768 pixcel Thanks with anticipations

      Unless u don't give ur hundred percent whatever u r doing till there is no result of ur work...

      A Offline
      A Offline
      Ashfield
      wrote on last edited by
      #2

      Well, the date time format question is easy. All you have done is set the currenlty running thread to the new date format, not the PC. There was another post recently about how to change the system date and/or format, it should point you in the right direction - and probably for the resolution settings too.

      Bob Ashfield Consultants Ltd

      V 1 Reply Last reply
      0
      • A Ashfield

        Well, the date time format question is easy. All you have done is set the currenlty running thread to the new date format, not the PC. There was another post recently about how to change the system date and/or format, it should point you in the right direction - and probably for the resolution settings too.

        Bob Ashfield Consultants Ltd

        V Offline
        V Offline
        V 2
        wrote on last edited by
        #3

        Thanks for reply Actually i wanna change the system short date format for doing this i have tried registery and Current Thread Culture but it fails in some condintion so i wanna do it in right way with also change the resolution of Pc

        Unless u don't give ur hundred percent whatever u r doing till there is no result of ur work...

        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