Click here to Skip to main content
15,898,373 members
Home / Discussions / C#
   

C#

 
AnswerRe: buttons click event is fire accurately but radiobuttonlist controls SelectIndexChanged event is not fired help me !! Pin
Xmen Real 27-Mar-09 8:37
professional Xmen Real 27-Mar-09 8:37 
Question[Message Deleted] Pin
Ibrahim Bello27-Mar-09 6:56
Ibrahim Bello27-Mar-09 6:56 
AnswerRe: Change GridView Column Header Text Pin
fly90427-Mar-09 7:04
fly90427-Mar-09 7:04 
JokeRe: [Message Deleted] Pin
musefan27-Mar-09 7:41
musefan27-Mar-09 7:41 
GeneralRe: [Message Deleted] Pin
Ibrahim Bello27-Mar-09 8:28
Ibrahim Bello27-Mar-09 8:28 
GeneralRe: [Message Deleted] Pin
#realJSOP27-Mar-09 8:42
professional#realJSOP27-Mar-09 8:42 
QuestionProgmatically Creating TreeNodes and Child Nodes [modified] Pin
maxatlis27-Mar-09 5:44
maxatlis27-Mar-09 5:44 
AnswerRe: Progmatically Creating TreeNodes and Child Nodes [modified] Pin
musefan27-Mar-09 6:02
musefan27-Mar-09 6:02 
heres an idea... should do the job anyway...


void CreateNodes(string[] urls)
{
  foreach(string url in urls)
  {
 string[] splits = url.Split('\\');

 TreeNode temp = GetNode(splits[0], TreeView.Nodes);
 if(temp == null)
   temp = TreeView.Nodes.Add(splits[0]);

  for(int i = 1; i < splits.Length; i++)
  {
    temp = GetNode(splits[i], temp.Nodes);
    if(temp == null)
        temp = temp.Nodes.Add(splits[i]);
  }

  }

}

TreeNode GetNode(string text, TreeNodeCollections nodes)
{
    foreach(TreeNode n in nodes)
     if(n.Text == text)
      return n;
    return null;
}


Life goes very fast. Tomorrow, today is already yesterday.

modified on Friday, March 27, 2009 12:47 PM

GeneralRe: Progmatically Creating TreeNodes and Child Nodes Pin
maxatlis27-Mar-09 6:11
maxatlis27-Mar-09 6:11 
GeneralRe: Progmatically Creating TreeNodes and Child Nodes Pin
maxatlis27-Mar-09 6:27
maxatlis27-Mar-09 6:27 
GeneralRe: Progmatically Creating TreeNodes and Child Nodes Pin
musefan27-Mar-09 6:34
musefan27-Mar-09 6:34 
GeneralRe: Progmatically Creating TreeNodes and Child Nodes Pin
maxatlis27-Mar-09 6:44
maxatlis27-Mar-09 6:44 
GeneralRe: Progmatically Creating TreeNodes and Child Nodes Pin
musefan27-Mar-09 6:49
musefan27-Mar-09 6:49 
GeneralRe: Progmatically Creating TreeNodes and Child Nodes Pin
maxatlis27-Mar-09 7:10
maxatlis27-Mar-09 7:10 
GeneralRe: Progmatically Creating TreeNodes and Child Nodes Pin
fly90427-Mar-09 7:54
fly90427-Mar-09 7:54 
AnswerRe: Progmatically Creating TreeNodes and Child Nodes Pin
Ian Shlasko27-Mar-09 9:58
Ian Shlasko27-Mar-09 9:58 
GeneralRe: Progmatically Creating TreeNodes and Child Nodes Pin
maxatlis27-Mar-09 13:20
maxatlis27-Mar-09 13:20 
AnswerHow To: - Progmatically Creating TreeNodes and Child Nodes [Answer] Pin
maxatlis27-Mar-09 14:37
maxatlis27-Mar-09 14:37 
QuestionOracle + #C DataBase Picture Pin
E_Gold27-Mar-09 5:17
E_Gold27-Mar-09 5:17 
QuestionNew Line VS2005 Installer's BodyText Pin
jp2code27-Mar-09 5:12
professionaljp2code27-Mar-09 5:12 
Questiondatabase in sql Pin
Mangesh Tomar27-Mar-09 4:39
Mangesh Tomar27-Mar-09 4:39 
AnswerRe: database in sql Pin
musefan27-Mar-09 4:47
musefan27-Mar-09 4:47 
GeneralRe: database in sql Pin
Mangesh Tomar27-Mar-09 5:41
Mangesh Tomar27-Mar-09 5:41 
GeneralRe: database in sql Pin
musefan27-Mar-09 5:48
musefan27-Mar-09 5:48 
QuestionCreating an .msg file Pin
MxIsMe27-Mar-09 2:56
MxIsMe27-Mar-09 2:56 

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.