Click here to Skip to main content
15,921,530 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: whats the code for this in .net? Pin
J4amieC4-Jan-06 2:35
J4amieC4-Jan-06 2:35 
Questiontreeview(binarytree) Pin
mamatharaghu4-Jan-06 0:36
mamatharaghu4-Jan-06 0:36 
AnswerRe: treeview(binarytree) Pin
Paritos4-Jan-06 1:02
Paritos4-Jan-06 1:02 
GeneralRe: treeview(binarytree) Pin
mamatharaghu4-Jan-06 1:41
mamatharaghu4-Jan-06 1:41 
GeneralRe: treeview(binarytree) Pin
J4amieC4-Jan-06 2:48
J4amieC4-Jan-06 2:48 
GeneralRe: treeview(binarytree) Pin
mamatharaghu4-Jan-06 18:18
mamatharaghu4-Jan-06 18:18 
GeneralRe: treeview(binarytree) Pin
J4amieC4-Jan-06 21:58
J4amieC4-Jan-06 21:58 
GeneralRe: treeview(binarytree) Pin
mamatharaghu5-Jan-06 18:28
mamatharaghu5-Jan-06 18:28 
hi,


iam again
i have modify the code and igot the result but how ican get the nodes which are remaining that is if the binary tree is not balanced and we have some nodes balance after the "treedepth"

***********************************0
******************************1*********2
***************************3*****4****5****6
************************7*****8
in this way
how to add 7 and 8 here
and my modified code is(in the load i have added one "top1" node)
===============================function========================================
Private Sub AddBinaryNode(ByVal parent1, ByVal startlevel, ByVal i, ByVal treelevel, ByVal balancenodes)

da1 = New SqlDataAdapter("select trackid,username,parentid from users", CON)
da1.Fill(ds1, "users")
Dim count As Integer = ds1.Tables(0).Rows.Count - 1
'-------- add 1-------
parent1.Nodes.Add(ds1.Tables(0).Rows(i)(0))
'-------- add 2-------
MsgBox(parent1.text)
MsgBox(i)
Dim fnl As Integer = i
j = i + 1
MsgBox(j)
parent1.Nodes.Add(ds1.Tables(0).Rows(j)(0))

i = (i * 2) + 1

Dim newlevel As Int16
If (startlevel < treelevel) Then
newlevel = startlevel + 1
AddBinaryNode(parent1.Nodes(0), newlevel, i, treelevel, balancenodes)
AddBinaryNode(parent1.Nodes(1), newlevel, i + 2, treelevel, balancenodes)
End If

End Sub
======================end function================

-- modified at 0:28 Friday 6th January, 2006
QuestionFinding the creator/author name of a folder Pin
Kavitha Sathishkumar3-Jan-06 22:52
Kavitha Sathishkumar3-Jan-06 22:52 
AnswerRe: Finding the creator/author name of a folder Pin
Kamalatharsan6-Jan-06 21:27
Kamalatharsan6-Jan-06 21:27 
Questioncoping images from webpage using vb.net Pin
uktrips0073-Jan-06 22:23
uktrips0073-Jan-06 22:23 
QuestionKnow of an organization chart/organogram that takes xml and draws the structure? Pin
QuintesV3-Jan-06 21:27
QuintesV3-Jan-06 21:27 
AnswerRe: Know of an organization chart/organogram that takes xml and draws the structure? Pin
QuintesV3-Jan-06 21:29
QuintesV3-Jan-06 21:29 
QuestionVB ActiveX Control Pin
GayathriNaveen3-Jan-06 19:10
GayathriNaveen3-Jan-06 19:10 
QuestionLinking database over FTP Pin
Roshan Sumbaly3-Jan-06 18:04
Roshan Sumbaly3-Jan-06 18:04 
AnswerRe: Linking database over FTP Pin
Dave Kreskowiak4-Jan-06 5:53
mveDave Kreskowiak4-Jan-06 5:53 
QuestionIntranet Application Pin
Aanchal Naidu3-Jan-06 17:45
Aanchal Naidu3-Jan-06 17:45 
AnswerRe: Intranet Application Pin
Dave Kreskowiak4-Jan-06 5:51
mveDave Kreskowiak4-Jan-06 5:51 
Questiontcplistener (VB.NET) Pin
curseddagger3-Jan-06 17:23
curseddagger3-Jan-06 17:23 
AnswerRe: tcplistener (VB.NET) Pin
Dave Kreskowiak4-Jan-06 5:44
mveDave Kreskowiak4-Jan-06 5:44 
GeneralRe: tcplistener (VB.NET) Pin
curseddagger4-Jan-06 14:20
curseddagger4-Jan-06 14:20 
GeneralRe: tcplistener (VB.NET) Pin
Dave Kreskowiak4-Jan-06 18:01
mveDave Kreskowiak4-Jan-06 18:01 
GeneralRe: tcplistener (VB.NET) Pin
curseddagger5-Jan-06 5:44
curseddagger5-Jan-06 5:44 
GeneralRe: tcplistener (VB.NET) Pin
Dave Kreskowiak5-Jan-06 5:53
mveDave Kreskowiak5-Jan-06 5:53 
QuestionHow to get my network domain name? Pin
cylix20003-Jan-06 14:45
cylix20003-Jan-06 14:45 

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.