D
Donald Smith
Hey,
I need help with my listview control. Here's my code:
Dim frm As New Form2()
Dim lvItem As New ListViewItem
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical, "Error")
StatusBar.Panels(0).Text = "Not Connected: Error"
lvItem = frm.lvErrorLog.Items.Add(Date.Now)
lvItem.SubItems.Add(ex.Message)
End Try
There is a "Try" command, I just didn't show it. Here's my problem: I'm trying to add an item to a listview from one form to another. Like this, Form1 gets the error, and tells form2 to place the error in its listview.
Thanks.
I need help with my listview control. Here's my code:
Dim frm As New Form2()
Dim lvItem As New ListViewItem
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical, "Error")
StatusBar.Panels(0).Text = "Not Connected: Error"
lvItem = frm.lvErrorLog.Items.Add(Date.Now)
lvItem.SubItems.Add(ex.Message)
End Try
There is a "Try" command, I just didn't show it. Here's my problem: I'm trying to add an item to a listview from one form to another. Like this, Form1 gets the error, and tells form2 to place the error in its listview.
Thanks.