This articles explains about extending Tree Nodes properties -------------------------- -------------------------- Inherting Tree Node and creating our own node while building Tree -------------------------- I was required to build tree which hold few of the values in each in the tree. So Anyway .net totally based on Classes. By inherting Tree node and extending its properties by creating our own properties was made work more useful. Hope this would help you .....
Here new class MyTreeNode is created inheriting from TreeNode and added our own properties. Class MyTreeNode Inherits TreeNode Public property1, property3, property2, Myselect, ParentID As String Public Sub New(Optional ByVal strpvalue As String = "", Optional ByVal strtext As String = "", Optional ByVal strpsource As String = "", Optional ByVal strsource As String = "", Optional ByVal strselect As String = "", Optional ByVal strParentID As String = "") MyBase.New() property1 = strpvalue Me.Text = strtext property2 = strpsource property3= strsource Myselect = strselect ParentID = strParentID End Sub End Class
-------------------------- Paragraph Heading -------------------------- -------------------------- Summary -------------------------- --------------------------
|
No responses found. Be the first to respond and make money from revenue sharing program.
|