Hi
can anyone tell me how to choose the date using MonthCalendar in form1 and display into a textbox in form2....
The problem is when i select to scroll to the other year, it will automatic display the date into the textbox in form2....
how to select from different years...
Below is my codes:
Private Sub MonthCalendar1_DateChanged(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DateRangeEventArgs) Handles MonthCalendar1.DateChanged
Dim AddInstance As New Adding
If (MonthCalendar1.SelectionStart.ToString <> "") Then
With AddInstance
.txtActivityDate.Text = MonthCalendar1.SelectionStart.ToString
.Show()
Me.Hide()
End With
End If
End Sub
Thanks
can anyone tell me how to choose the date using MonthCalendar in form1 and display into a textbox in form2....
The problem is when i select to scroll to the other year, it will automatic display the date into the textbox in form2....
how to select from different years...
Below is my codes:
Private Sub MonthCalendar1_DateChanged(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DateRangeEventArgs) Handles MonthCalendar1.DateChanged
Dim AddInstance As New Adding
If (MonthCalendar1.SelectionStart.ToString <> "") Then
With AddInstance
.txtActivityDate.Text = MonthCalendar1.SelectionStart.ToString
.Show()
Me.Hide()
End With
End If
End Sub
Thanks