I want to display the date and time in the long date format
as a form load event. Do I need to link it to a label or a text box?
Thanks
ds
as a form load event. Do I need to link it to a label or a text box?
Code:
Public Class Form1
'Form load event display date and time
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim dtmSystemDate As Date = Now 'declare variable for Date
Dim strNow As String = Now().ToString("D")
End Sub
ds
Comment