Click here to Skip to main content
15,906,329 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: To get current week nr? is this wrong? Pin
Guffa27-Mar-06 21:33
Guffa27-Mar-06 21:33 
QuestionCombo Box values Pin
rahsi27-Mar-06 19:19
rahsi27-Mar-06 19:19 
AnswerRe: Combo Box values Pin
albCode27-Mar-06 20:22
albCode27-Mar-06 20:22 
GeneralRe: Combo Box values Pin
rahsi27-Mar-06 23:50
rahsi27-Mar-06 23:50 
GeneralRe: Combo Box values Pin
Chatura Dilan28-Mar-06 1:09
Chatura Dilan28-Mar-06 1:09 
Questioncompare 2 images Pin
mamatharaghu27-Mar-06 19:12
mamatharaghu27-Mar-06 19:12 
QuestionInstalling Window Service Pin
nitin_ion27-Mar-06 19:09
nitin_ion27-Mar-06 19:09 
Questionchildnode for treeview Pin
thepityone27-Mar-06 19:06
thepityone27-Mar-06 19:06 
hello

guys i would like to ask you again if ever you have an idea on how i my going to generate a childnode which is unbound i'm using a datareader to get the parentnode for my treeview and its working my only problem is that i dont know how am i going to generate a child node...okey i have three table in my sqlbase one is for the divisions,2nd is the department and the 3rd is the sections...okey to clarify this the divisions will hold as parentnode and i already got it,,,while department will be the childnode of the divisions,,after that the sections will be also the child of the department and that's my problem the childnode can fix my problem coz i'm already 2 days stock here...please help me...okey heres my code for divisions(parentnode)...

Dim myconnection As New SqlConnection(My.Settings.sampleConnectionString)
Dim cmdjol As String = "select description from dbo.employee_divisions"
Dim cmd As New SqlCommand(cmdjol, myconnection)

cmd.Parameters.Add("@description", SqlDbType.VarChar, 50, ParameterDirection.Input).Value = Divisions.divname.Text
myconnection.Open()


Dim mydatareader As SqlDataReader = cmd.ExecuteReader()

Try
While mydatareader.Read()
TreeView1.Nodes.Add(mydatareader.GetString(0))
TreeView1.ShowPlusMinus = True
TreeView1.ShowRootLines = True
End While

Finally

mydatareader.Close()
myconnection.close()
End Try

can you add for my childnode(department and sections)

thnaks in advance...
AnswerRe: childnode for treeview Pin
mamatharaghu27-Mar-06 20:01
mamatharaghu27-Mar-06 20:01 
AnswerRe: childnode for treeview Pin
mamatharaghu27-Mar-06 20:03
mamatharaghu27-Mar-06 20:03 
AnswerRe: childnode for treeview Pin
mamatharaghu28-Mar-06 18:04
mamatharaghu28-Mar-06 18:04 
QuestionReceive and Send SMS in VB.NET Pin
Mr. Unstoppable27-Mar-06 18:59
Mr. Unstoppable27-Mar-06 18:59 
QuestionHow to use WMI in VB.Net?? Pin
besah27-Mar-06 18:05
besah27-Mar-06 18:05 
QuestionHow do I program a multi-menu application? Pin
furjaw27-Mar-06 15:55
furjaw27-Mar-06 15:55 
Questionhow to perform non-maximum suppression and hysteresis Pin
preci27-Mar-06 13:54
preci27-Mar-06 13:54 
QuestionWindow Form Designer Generated Code Pin
Chatura Dilan27-Mar-06 13:48
Chatura Dilan27-Mar-06 13:48 
AnswerRe: Window Form Designer Generated Code Pin
Dave Kreskowiak27-Mar-06 17:31
mveDave Kreskowiak27-Mar-06 17:31 
GeneralRe: Window Form Designer Generated Code Pin
Chatura Dilan27-Mar-06 20:09
Chatura Dilan27-Mar-06 20:09 
QuestionYou Wonder Why We Bother??? Pin
Steve Pullan27-Mar-06 13:08
Steve Pullan27-Mar-06 13:08 
GeneralRe: You Wonder Why We Bother??? Pin
Chatura Dilan27-Mar-06 13:47
Chatura Dilan27-Mar-06 13:47 
GeneralRe: You Wonder Why We Bother??? Pin
FeRtoll28-Mar-06 4:57
FeRtoll28-Mar-06 4:57 
GeneralRe: You Wonder Why We Bother??? Pin
Chatura Dilan28-Mar-06 15:34
Chatura Dilan28-Mar-06 15:34 
AnswerRe: You Wonder Why We Bother??? Pin
J4amieC28-Mar-06 1:17
J4amieC28-Mar-06 1:17 
QuestionFtp Commands Pin
eagertolearn27-Mar-06 12:13
eagertolearn27-Mar-06 12:13 
Questionocx Pin
SVb.net27-Mar-06 11:11
SVb.net27-Mar-06 11:11 

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.