Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Form2.Show() Form2.TextBox1.Text = dgv1.CurrentRow.Cells(0).Value.ToString Form2.TextBox2.Text = dgv1.CurrentRow.Cells(1).Value.ToString Form2.TextBox3.Text = dgv1.CurrentRow.Cells(2).Value.ToString Form2.TextBox4.Text = dgv1.CurrentRow.Cells(3).Value.ToString Form2.TextBox5.Text = dgv1.CurrentRow.Cells(4).Value.ToString Form2.TextBox6.Text = dgv1.CurrentRow.Cells(5).Value.ToString Form2.TextBox7.Text = dgv1.CurrentRow.Cells(6).Value.ToString
textbox5 is one that should only show the date, but when I click the button, the text box shows me the date and time. ex: 12/01/12 12:00.
how can i remove time from showing in textbox?
source share