VB .NET
Slip9
Q.1) Design a Vb.net form to pick a date from DateTimePicker Control and display day, month and year in separate text boxes. [Marks 20]
Solution
Public Class Slip9
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox1.Text = DateTimePicker1.Value.Day
TextBox2.Text = DateTimePicker1.Value.Month
TextBox3.Text = DateTimePicker1.Value.Year
End Sub
End Class
Tags:
VB .NET