Hi, i've got a module for my program thats displays the active time and date, on a form. For some reason my code is incorrect and nothing happens when I run the form. I can't figure out what the problem is, can anyone help?
Heres the code I have in the module:
And the code in the form's:Code:Module ModDateAndTime 'Declares tmrdat as a timer with events Public WithEvents tmrdat As Timer 'declares lbldat as a label Public lbldat As Label Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrdat.Tick 'puts the Time and date into the label lbldat.Text = DateAndTime.Now.ToString End Sub End Module
The relevant label in the form is named lblDateandTimeCode:'declares lbldat as lbldateandtime lbldat = lblDateandTime
Thanks





Reply With Quote