how can i add a date and time in a labelbox and how can i know the location of my program
thanks!!!!
Printable View
how can i add a date and time in a labelbox and how can i know the location of my program
thanks!!!!
Here you go :wave:
VB Code:
Label1.Caption = Now() 'Shows date and time Label2.Caption = App.Path 'Shows the location of your app
to add a date, use the date function, it returns the current date of your system
VB Code:
label1.Caption = Date
to add the time, use the following code
VB Code:
label2.Caption = format(now,"hh:nn:ss AMPM")
to view the location of your application, use the App.Path
VB Code:
msgbox App.Path