Dear All,
I have created a ZipCode Class:
Public Class ZipCodeClass
Private mZipTree as TreeView
Public ReadOnly Property ZipCodeTreeView() As TreeView
Get
If mZipCodeTreeView Is Nothing Then
CreateZipTree()
End If
Return mZipCodeTreeView
End Get
End Property
The CreateZipTree() is a private sub of the ZipCode Class that places all the Zip Code in the mZipCodeTreeView nodes. This Work well.
The problem is when I call the property in my program:
Dim Zip as ZipCodeClass
tvwZipCode = Zip.ZipCodeTreeView
My tvwZipCode DOES NOT DISPLAY ANY NODES that the ZipCodeTreeView passes but the values of their properties and methods are the same. I tried using the method
tvwZipCode.GetNodeCount(True)
tvwZipCode.GetNodeCount(False)
and got the same number of nodes on both methods as in the ZipCodeTreeView.
tvwZipCode is a TreeView control I created using the VB.NET ToolBar.
Please help me find my nodes.
Thank you so much for your help.
God bless,
Balarao
I have created a ZipCode Class:
Public Class ZipCodeClass
Private mZipTree as TreeView
Public ReadOnly Property ZipCodeTreeView() As TreeView
Get
If mZipCodeTreeView Is Nothing Then
CreateZipTree()
End If
Return mZipCodeTreeView
End Get
End Property
The CreateZipTree() is a private sub of the ZipCode Class that places all the Zip Code in the mZipCodeTreeView nodes. This Work well.
The problem is when I call the property in my program:
Dim Zip as ZipCodeClass
tvwZipCode = Zip.ZipCodeTreeView
My tvwZipCode DOES NOT DISPLAY ANY NODES that the ZipCodeTreeView passes but the values of their properties and methods are the same. I tried using the method
tvwZipCode.GetNodeCount(True)
tvwZipCode.GetNodeCount(False)
and got the same number of nodes on both methods as in the ZipCodeTreeView.
tvwZipCode is a TreeView control I created using the VB.NET ToolBar.
Please help me find my nodes.
Thank you so much for your help.
God bless,
Balarao