Click here to Skip to main content
15,896,912 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: I want to change color of TD using C# code in ASP.NET Pin
Chatura Dilan29-Mar-06 1:07
Chatura Dilan29-Mar-06 1:07 
GeneralRe: OK I want to change color of TD in VB code in ASP.NET Pin
Khawar Abbas129-Mar-06 1:11
Khawar Abbas129-Mar-06 1:11 
GeneralRe: OK I want to change color of TD in VB code in ASP.NET Pin
Dave Kreskowiak29-Mar-06 1:26
mveDave Kreskowiak29-Mar-06 1:26 
AnswerRe: I want to change color of TD using C# code in ASP.NET Pin
bony_baba30-Mar-06 1:00
bony_baba30-Mar-06 1:00 
QuestionHow to avoid Recursive Event Triggering between Controls Pin
twohops28-Mar-06 22:03
twohops28-Mar-06 22:03 
QuestionQuestion In vb.net Pin
Arag0328-Mar-06 21:59
Arag0328-Mar-06 21:59 
AnswerRe: Question In vb.net Pin
albCode28-Mar-06 22:12
albCode28-Mar-06 22:12 
Questiondatareader problem Pin
thepityone28-Mar-06 20:45
thepityone28-Mar-06 20:45 
hello

again i would like to ask you guys about this problem in datereader that i incounter during play---is says:" There is already an open DataReader associated with this Command which must be closed first."

heres my code:

Dim myconnection As New SqlConnection(My.Settings.sampleConnectionString)

Dim cmdjol As String = "select * from dbo.employee_divisions"
Dim cmd As New SqlCommand(cmdjol, myconnection)

'Parentnode'
Dim mydatareader As SqlDataReader
cmd.Parameters.Add("@description", SqlDbType.VarChar, 50, ParameterDirection.Input).Value = Divisions.divname.Text
myconnection.Open()

mydatareader = cmd.ExecuteReader()
While mydatareader.Read()
'If mydatareader.Item(0) = " " Then
TreeView1.Tag = mydatareader.Item(0).ToString
TreeView1.Nodes.Add(mydatareader.GetString(1).ToString)
TreeView1.ShowPlusMinus = True
TreeView1.ShowRootLines = True

Dim cmdj As String = "select description from dbo.employee_departments"
Dim cmds As New SqlCommand(cmdj, myconnection)
Dim xreader As SqlDataReader
cmd.Parameters.Add("@description", SqlDbType.VarChar, 50, ParameterDirection.Input).Value = Departments.depname.Text

xreader = cmds.ExecuteReader
While xreader.Read
TreeView1.Tag = mydatareader.Item(0).ToString
TreeView1.Nodes.Add(xreader.GetString(1).ToString)

End While
xreader.Close()

End While
mydatareader.Close()
myconnection.Close()

can you fix please coz that's for treeview unbound
thnaks in advance....
Questionsound recognition Pin
susee_132328-Mar-06 20:44
susee_132328-Mar-06 20:44 
QuestionScanner Activation Pin
Thoombath28-Mar-06 20:17
Thoombath28-Mar-06 20:17 
QuestionRetrieving value from Subitem of Listview Pin
wilde28-Mar-06 20:12
wilde28-Mar-06 20:12 
AnswerRe: Retrieving value from Subitem of Listview Pin
alien viper28-Mar-06 20:33
alien viper28-Mar-06 20:33 
QuestionComparing strings with variable lengths/misspells/... Pin
mayhem_rules28-Mar-06 18:59
mayhem_rules28-Mar-06 18:59 
AnswerRe: Comparing strings with variable lengths/misspells/... Pin
dptalt29-Mar-06 2:33
dptalt29-Mar-06 2:33 
QuestionUnicode supported characters in filenames Pin
sp_ranjan28-Mar-06 18:48
sp_ranjan28-Mar-06 18:48 
QuestionRichtextbox.Line property Pin
wilde28-Mar-06 18:06
wilde28-Mar-06 18:06 
AnswerRe: Richtextbox.Line property Pin
Joshua Quick28-Mar-06 19:28
Joshua Quick28-Mar-06 19:28 
Questionvb.net 2005 school assignment Pin
vb2005.net@hotmail.com28-Mar-06 16:40
vb2005.net@hotmail.com28-Mar-06 16:40 
AnswerRe: vb.net 2005 school assignment Pin
Chatura Dilan28-Mar-06 17:23
Chatura Dilan28-Mar-06 17:23 
AnswerRe: vb.net 2005 school assignment Pin
Dave Kreskowiak29-Mar-06 1:14
mveDave Kreskowiak29-Mar-06 1:14 
Questionadding new line in Ricgtextbox Pin
wilde28-Mar-06 14:49
wilde28-Mar-06 14:49 
AnswerRe: adding new line in Ricgtextbox Pin
merlynml28-Mar-06 16:23
merlynml28-Mar-06 16:23 
GeneralRe: adding new line in Richtextbox Pin
wilde28-Mar-06 16:40
wilde28-Mar-06 16:40 
QuestionPoor performance of VB.net HashTable Class Pin
jjbhey28-Mar-06 14:19
jjbhey28-Mar-06 14:19 
AnswerRe: Poor performance of VB.net HashTable Class Pin
Christian Graus28-Mar-06 14:50
protectorChristian Graus28-Mar-06 14:50 

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.