Monday, January 26, 2009

How to display date and time using vb6.0?

Getting the time and Date in your computer basically its easy.
First is to put two labels in your form label1 and label2 that is the name of the two labels and then after that put timer in your form too.
Timer1 is the default name of the timer and set timer interval into 10. And double click your form which is your form1 and after that i want you to put this code inside your form load() . label1.caption is equal to Date and lablel2.caption is equal to Time after that run your program. You can download my example below.. Thats all!
















Download File

2 comments:

 

blogger templates | Make Money Online