-
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!!!
-
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.