Click here to Skip to main content
15,888,984 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Generalhelp - detect changed data in form Pin
SGarratt10-Jan-05 12:10
SGarratt10-Jan-05 12:10 
GeneralRe: help - detect changed data in form Pin
Robert Rohde11-Jan-05 0:13
Robert Rohde11-Jan-05 0:13 
GeneralRe: help - detect changed data in form Pin
Anonymous11-Jan-05 13:54
Anonymous11-Jan-05 13:54 
GeneralWindows message handler Pin
RaymondM10-Jan-05 0:17
RaymondM10-Jan-05 0:17 
GeneralLoosing event links by using cut an past Pin
fracalifa8-Jan-05 1:05
fracalifa8-Jan-05 1:05 
GeneralRe: Loosing event links by using cut an past Pin
Robert Rohde8-Jan-05 1:48
Robert Rohde8-Jan-05 1:48 
GeneralNeed help generating tree structure. Pin
fishnet3727-Jan-05 6:02
fishnet3727-Jan-05 6:02 
GeneralRe: Need help generating tree structure. Pin
Ritesh12347-Jan-05 20:43
Ritesh12347-Jan-05 20:43 
Hi,
I have Methods which will do what u want ....Here is the code.....(VB.NET Code)
'******************************************************

private arr_Node() As String
Private strString As String = "ABC.XYZ.DKF.FF"
Private intParentNode As Integer
'******************************************************
Private Sub CreateTree()
arr_Node = strString.Split(".")
CreateTree(TreeView1) 'Name of ur tree view control
End Sub
Private Sub CreateTree(ByVal TreeView As TreeView)
        Try
            Dim rootNode As New TreeNode(arr_Node(0).ToString)
            TreeView.BeginUpdate()
            TreeView.Nodes.Add(rootNode)

            intParentNode = 1
            AddChild(rootNode, arr_Node)
            TreeView.EndUpdate()
        Catch exc As Exception
            Throw exc
        End Try
    End Sub

    Private Sub AddChild(ByVal ParentNode As TreeNode, ByVal array() As String)
        Try
            If array.Length > intParentNode Then
                Dim ChildNode As New TreeNode(array(intParentNode))
                intParentNode += 1
                ParentNode.Nodes.Add(ChildNode)
                AddChild(ChildNode, array)
            End If
        Catch exc As Exception
            Throw exc
        End Try
    End Sub



Hope this will Help you.................:->

Regards,
Ritesh
GeneralRe: Need help generating tree structure. Pin
Robert Rohde7-Jan-05 21:46
Robert Rohde7-Jan-05 21:46 
GeneralRe: Need help generating tree structure. Pin
Ritesh12349-Jan-05 23:28
Ritesh12349-Jan-05 23:28 
GeneralConverting a HEX value to a DateTime Pin
Stanimir_Stoyanov7-Jan-05 0:18
Stanimir_Stoyanov7-Jan-05 0:18 
GeneralRe: Converting a HEX value to a DateTime Pin
Mike Dimmick7-Jan-05 2:30
Mike Dimmick7-Jan-05 2:30 
Generalwhich testing tool is better Pin
montu33776-Jan-05 23:08
montu33776-Jan-05 23:08 
GeneralCompiling VC++ application on VC7 Pin
_Tom_6-Jan-05 2:18
_Tom_6-Jan-05 2:18 
GeneralAdvice needed for how to use XML DOM Pin
John Guin5-Jan-05 7:19
John Guin5-Jan-05 7:19 
GeneralRe: Advice needed for how to use XML DOM Pin
Charlie Williams6-Jan-05 5:40
Charlie Williams6-Jan-05 5:40 
GeneralInfuriating, Costly Exception Handling Delay Pin
JMPurcell4-Jan-05 18:53
JMPurcell4-Jan-05 18:53 
GeneralRe: Infuriating, Costly Exception Handling Delay Pin
JMPurcell6-Jan-05 8:14
JMPurcell6-Jan-05 8:14 
GeneralRe: Infuriating, Costly Exception Handling Delay Pin
Rob Graham6-Jan-05 9:41
Rob Graham6-Jan-05 9:41 
GeneralRe: Infuriating, Costly Exception Handling Delay Pin
JMPurcell6-Jan-05 11:36
JMPurcell6-Jan-05 11:36 
GeneralRe: Infuriating, Costly Exception Handling Delay Pin
Colin Angus Mackay7-Jan-05 0:04
Colin Angus Mackay7-Jan-05 0:04 
GeneralRe: Infuriating, Costly Exception Handling Delay Pin
JMPurcell7-Jan-05 7:52
JMPurcell7-Jan-05 7:52 
Generalserial com port communication! Pin
Member 16267074-Jan-05 12:11
Member 16267074-Jan-05 12:11 
GeneralRe: serial com port communication! Pin
Ritesh12347-Jan-05 3:27
Ritesh12347-Jan-05 3:27 
GeneralXML encoding losing special Characters Pin
kikilala4-Jan-05 10:19
kikilala4-Jan-05 10:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.