'VB.NET Gridview and Timer
So I'm working on simple project, still new to coding but I'm learning day after day I'm trying pretty much to do like a Task Reminder thingy: Main Idea: using gridview columns to add time (as shown) and when it hits the label time (which I'm already using timer on) will do a notify or msgbox
Label Time Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Label33.Text = TimeOfDay.ToString("hh:mm:ss tt")
End Sub
Regarding the gridview I searched a lot about it, I was working on a ListView and that was my main code but it didn't work:
Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click
Dim Item As New ListViewItem(TextBox16.Text)
Dim messagetime As String
Item.SubItems.Add(MaskedTextBox1.Text)
Item.SubItems.Add(TextBox18.Text + ComboBox6.Text)
ListView1.Items.Add(Item)
messagetime = MaskedTextBox1.Text + ComboBox6.Text
If ListView1.Items(0).SubItems(2).Text = Label33.Text Then
MsgBox(TextBox16.Text + " " + TextBox18.Text)
End If
End Sub
But now I'm using gridview, when label time comes to the 2nd column time it should do notify or a msgbox written inside of it for example "Don't forget to call Seller Name"
Thank you so much in advance
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
