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
J

JewelOfTheNile

@JewelOfTheNile
About
Posts
3
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Changing the time or date field of the timedate control panel using shell command
    J JewelOfTheNile

    How do I change the date or time field of the timedate control panel using the shell command (without displaying the applet). For example, I can change the timezone by specifying "control.exe timedate.cpl,,/Z" & StandardName where StandardName is the selected zone name. I would like to do the same thing for the date or time field. Is it possible? Thanks for your help! - Jewel P.S: I am a new member so I am not so sure if i will be notified automatically via email (or how it works?) when someone replies to my message. So here is my email: minhchau.duong@triton.com

    Visual Basic question com linux help tutorial

  • Daylight saving not working in vb .net application
    J JewelOfTheNile

    Hi Dave, I know that Windows handles daylight saving automatically. Our application just provides the testers a function to change the time zone and time/date. The time should sync up with the OS for daylight saving automatically if it's selected from the OS datetime control panel (ie; there is no logic in my program that calculates the daylight saving). The testers need to test that functionality of the program and it did not work when they changed the time/date to 11/4 2AM to test for the fall back time (standard). We converted our program from VB6 to VB .Net. The one from VB6 used all the API calls (ie; RegQueryValueEx, MultiByteToWideCard..) and it worked fine when we tested the same scenario. In the VB .Net program I tried marshalling all the structures (SYSTEMTIME, TIME_ZONES_INFORMATION, OSVERSIONINFO..) I used but still could not get the SetTimeZoneInformation to work every time the date/time changed on my test dialog. My TimeZoneInformation registry contained garbages (StandardName, DaylightName, DaylightStart, StandardStart) whenever I called that API to update the datetime info. I finally gave up and used the Shell command to update the info instead of API's. The data looked correct in the registry now everytime the users modify the zone/date/time from the dialog. However, I could not fall back from daylight to standard time using our test program!!:( - Jewel

    Visual Basic csharp windows-admin linux testing beta-testing

  • Daylight saving not working in vb .net application
    J JewelOfTheNile

    My application is written in VB .Net on Windows XP. A part of my program provides a System Configuration Dialog where user can pick a time zone, specify the date (MM/DD/YY) and time (HH:MM:SS AM/PM). Whenever a user changes any of the above fields and selects save, the specified information is saved as followed: 'Save the selected time zone Shell("RUNDLL32.EXE SHELL32.DLL, Control_RunDLL TIMEDATE.CPL,,/Z" & StandardName) where StandardName is the Std value at the HKLM\Software\Microsoft\Windows NT\Current Version\Tim Zones\ 'Save the specified date Today = CDate(StringValue(DateFieldName)) 'Save the specified time TimeOfDay = CDate(StringValue(TimeFieldName)) where Today and TimeOfDay are the members of the Microsoft.VisualBasic.DateAndTime Testing Senario: 1) DayLight saving testing worked fine At the System Configuration Diaglog, enter the following data: - Time Zone: Pacific Standard Time - Specified Date: 3/11/07 - Specified Time: 01:59:40 AM When the time got to 2AM, the system clock was adjust forward to 3AM as expected. 2) Standard time testing NOT WORKING The same selections as above except the date was set to 11/04/07 When the time got to 2AM, the system clock did not fall back to 1AM as expected. It stayed at 2AM and continued on! I use the shell command to set the time zone because i could not get the SetTimeZoneInformation API to work. It created garbages in my registry setting for the daylight saving information. Please help asap since the daylight saving is approaching fast. Thanks a bunch in advance. - Jewel

    Visual Basic csharp windows-admin linux testing beta-testing
  • Login

  • Don't have an account? Register

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