Click here to Skip to main content
15,914,010 members
Home / Discussions / C#
   

C#

 
GeneralRe: Sharpening the Saw Pin
Pete O'Hanlon1-Jun-11 9:36
mvePete O'Hanlon1-Jun-11 9:36 
GeneralRe: Sharpening the Saw Pin
gavindon1-Jun-11 10:31
gavindon1-Jun-11 10:31 
GeneralRe: Sharpening the Saw Pin
SledgeHammer011-Jun-11 9:53
SledgeHammer011-Jun-11 9:53 
JokeRe: Sharpening the Saw [modified] Pin
AspDotNetDev1-Jun-11 10:37
protectorAspDotNetDev1-Jun-11 10:37 
GeneralRe: Sharpening the Saw Pin
SledgeHammer011-Jun-11 11:21
SledgeHammer011-Jun-11 11:21 
GeneralRe: Sharpening the Saw Pin
Pete O'Hanlon1-Jun-11 21:47
mvePete O'Hanlon1-Jun-11 21:47 
AnswerRe: Sharpening the Saw [modified] Pin
RobCroll1-Jun-11 14:11
RobCroll1-Jun-11 14:11 
QuestionI do not understand why the error ! :S Pin
ismail201-Jun-11 2:31
ismail201-Jun-11 2:31 
private void Action(int ust_id) 
{ 
     MySqlCommand cmd = new MySqlCommand("Select * From kategoriler_tablo Where UstKategoriId=" + ust_id.ToString(), c); 
     c.Open(); 
     MySqlDataReader r = cmd.ExecuteReader(); 
     while (r.Read()) { 

          if (ust_id != 0) { 
               treeView1.Nodes.Find(ust_id.ToString(), true)(0).Nodes.Add(r("id").ToString(), r("KategoriAdi").ToString()); 

          } else { 
               treeView1.Nodes.Add(r("id").ToString(), r("KategoriAdi").ToString()); 
          } 
          Action(Convert.ToInt32(r("id"))); 
     } 
     r.Close(); 
     c.Close() 
} 

private void Button1_Click(System.Object sender, System.EventArgs e) 
{ 
    if (c.State != ConnectionState.Open) { 
     } 
     TreeView1.Nodes.Clear(); 
     TreeView1.Update(); 
     c.close(); 
     Action(0); 
}



This code does not work. I could not understand where the fault is
http://www.imageupload.org/?d=2E926FEF1[^]
AnswerRe: I do not understand why the error ! :S Pin
PIEBALDconsult1-Jun-11 2:50
mvePIEBALDconsult1-Jun-11 2:50 
AnswerRe: I do not understand why the error ! :S Pin
Eddy Vluggen1-Jun-11 2:59
professionalEddy Vluggen1-Jun-11 2:59 
AnswerRe: I do not understand why the error ! :S Pin
Not Active1-Jun-11 2:59
mentorNot Active1-Jun-11 2:59 
GeneralRe: I do not understand why the error ! :S Pin
ismail201-Jun-11 3:05
ismail201-Jun-11 3:05 
GeneralRe: I do not understand why the error ! :S Pin
Not Active1-Jun-11 3:21
mentorNot Active1-Jun-11 3:21 
GeneralRe: I do not understand why the error ! :S Pin
ismail201-Jun-11 3:29
ismail201-Jun-11 3:29 
GeneralRe: I do not understand why the error ! :S Pin
Not Active1-Jun-11 3:32
mentorNot Active1-Jun-11 3:32 
GeneralRe: I do not understand why the error ! :S Pin
ismail201-Jun-11 3:34
ismail201-Jun-11 3:34 
GeneralRe: I do not understand why the error ! :S Pin
Not Active1-Jun-11 3:38
mentorNot Active1-Jun-11 3:38 
GeneralRe: I do not understand why the error ! :S Pin
BobJanova1-Jun-11 4:12
BobJanova1-Jun-11 4:12 
AnswerRe: I do not understand why the error ! :S Pin
Pete O'Hanlon1-Jun-11 3:25
mvePete O'Hanlon1-Jun-11 3:25 
GeneralRe: I do not understand why the error ! :S Pin
ismail201-Jun-11 3:33
ismail201-Jun-11 3:33 
GeneralRe: I do not understand why the error ! :S Pin
Not Active1-Jun-11 3:37
mentorNot Active1-Jun-11 3:37 
GeneralRe: I do not understand why the error ! :S Pin
ismail201-Jun-11 3:44
ismail201-Jun-11 3:44 
GeneralRe: I do not understand why the error ! :S PinPopular
Pete O'Hanlon1-Jun-11 3:54
mvePete O'Hanlon1-Jun-11 3:54 
QuestionLogical issue with a recursive function call Pin
John-ph1-Jun-11 2:23
John-ph1-Jun-11 2:23 
AnswerRe: Logical issue with a recursive function call Pin
dasblinkenlight1-Jun-11 5:37
dasblinkenlight1-Jun-11 5:37 

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.