Design a Vb.net form to pick a date from DateTimePicker Control and display day, month and year in separate text boxes

Slip9

Public Class Form1

    Private Sub DateTimePicker1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DateTimePicker1.ValueChanged
        Dim d As DateTime
        d = DateTimePicker1.Value
        TextBox1.Text = d.Day
        TextBox2.Text = d.Month
        TextBox3.Text = d.Year
    End Sub
End Class

Comments

Post a Comment

Popular posts from this blog

Write a Vb.net program to accept a character from keyboard and check whether it is vowel or not. Also display the case of that character.

Write a Vb.net program to check whether entered string is palindrome or not.

Write a Vb.net program for blinking an image.