C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Articles » .NET Framework »

Extending Tree Node properties


Posted Date: 04 Jan 2005    Resource Type: Articles    Category: .NET Framework
Author: Lokesh.k.rajMember Level: Bronze    
Rating: 1 out of 5Points: 7



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
--------------------------
--------------------------



Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: INTERVIEW QUESTIONS WITH ANSWERS
Previous Resource: Differences between DataSet and DataReader
Return to Discussion Resource Index
Post New Resource
Category: .NET Framework


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use