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. GUI design problem

GUI design problem

Scheduled Pinned Locked Moved Visual Basic
designhelp
2 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.
  • A Offline
    A Offline
    Andy H
    wrote on last edited by
    #1

    I have a problem with GUI design and would be interested what anyone else would do. My client wants their users to be able to change the system time to another date other than NOW(). What they have requested is a checkbox be placed on a form and when ticked a dialog pops up with a date-time pick on it from which the user can select the new system date. I have presently put OK and CANCEl buttons on the said dialog. If the user has changed the date to other than NOW() and hits OK then the system date is updated, otherwise clicking on CANCEL leave the system date un-changed. If the system date remains as NOW() the check-box is then un-ticked otherwise it is ticked. The problem I have is that if the system date is already something other than NOW() and they wish to change the date to some other date but still not NOW(), clicking on the check-nox obviously un-ticks the checkbox and desn't then show the said dialog they have to tick the checkbox a second time to get the dialog to show. I think the checkbox isn't quite the correct widget to use. They don't want the date to be visible until the dialog is displayed. Any advice would be appreciated.

    M 1 Reply Last reply
    0
    • A Andy H

      I have a problem with GUI design and would be interested what anyone else would do. My client wants their users to be able to change the system time to another date other than NOW(). What they have requested is a checkbox be placed on a form and when ticked a dialog pops up with a date-time pick on it from which the user can select the new system date. I have presently put OK and CANCEl buttons on the said dialog. If the user has changed the date to other than NOW() and hits OK then the system date is updated, otherwise clicking on CANCEL leave the system date un-changed. If the system date remains as NOW() the check-box is then un-ticked otherwise it is ticked. The problem I have is that if the system date is already something other than NOW() and they wish to change the date to some other date but still not NOW(), clicking on the check-nox obviously un-ticks the checkbox and desn't then show the said dialog they have to tick the checkbox a second time to get the dialog to show. I think the checkbox isn't quite the correct widget to use. They don't want the date to be visible until the dialog is displayed. Any advice would be appreciated.

      M Offline
      M Offline
      manoj madahavan
      wrote on last edited by
      #2

      I think so you are having a problem, As per the problem i understand is When you open the dialog box to display and store it in a variable the system time and date is stored. But when the user selects Ok button or cancel button the time gets changed. When you next call now function. it is better to use date function and time function this will give you the current time and todays date. Thanks! Manoj Madhavan;)

      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