Results 1 to 2 of 2

Thread: Date in Visual Basic

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2003
    Location
    London
    Posts
    9

    Question Date in Visual Basic

    I've just started trying to learn Visual basic (VB 6.0). I am sure someone here can answer a simple question for me: how do I display the current date in a picture box? I use this code: picBox. Print Date (). Which event do I use to make it displayed automatically when the form is open?

    Thanks in advance!!!
    My best wishes,
    tatikprice

  2. #2
    Hyperactive Member Radames's Avatar
    Join Date
    Feb 2001
    Location
    Tech Tropics
    Posts
    360
    Why a picturebox? It has no Caption nor Text property. I think using the picture box's print method is more 'bulky'.
    Consider using a TextBox, Caption or even better a DateTime Picker.

    If you still want to use the PictureBox, then put your code in the form's load event.
    Top Tip: You can make friends and impress the opposite sex at geeky cocktail parties by saying "DB" instead of database. - Karl Moore

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