T
tmaster
Can I pass a listview to another form using a property definition like this?
Public Class frmToDoDetail
Inherits System.Windows.Forms.Form
Private m_lvwTD As ListView
Public Property lvwTD() As ListView
Get
lvwTD = m_lvwTD
End Get
Set(ByVal Value As ListView)
m_lvwTD = lvwTD
End Set
End Property
.... try to access the listview using m_lvwTD or lvwTD doesn't work?
------------------------------
Here's my attempt at the 'calling' side of the code:
Dim frmTemp As New frmToDoDetail()
frmTemp.lvwTD = lvwToDo
If frmTemp.edit Then...
I do not get any syntax errors, yet the 'passed' listview object is
'nothing'. Am I on the right track?
Thanks.
Public Class frmToDoDetail
Inherits System.Windows.Forms.Form
Private m_lvwTD As ListView
Public Property lvwTD() As ListView
Get
lvwTD = m_lvwTD
End Get
Set(ByVal Value As ListView)
m_lvwTD = lvwTD
End Set
End Property
.... try to access the listview using m_lvwTD or lvwTD doesn't work?
------------------------------
Here's my attempt at the 'calling' side of the code:
Dim frmTemp As New frmToDoDetail()
frmTemp.lvwTD = lvwToDo
If frmTemp.edit Then...
I do not get any syntax errors, yet the 'passed' listview object is
'nothing'. Am I on the right track?
Thanks.