Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click TextBox1.Text = DataGridView1.CurrentCell.Value.ToString If Date.Now = TextBox1.Text Then DataGridView1.CurrentCell.Style.BackColor = Color.Blue End If End Sub
TextBox1.Text = DataGridView1.CurrentCell.Value.ToString("dd-MM-yyyy")
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)