Click here to Skip to main content
15,911,646 members
Home / Discussions / C#
   

C#

 
AnswerRe: need some quick help thx : how can i access and open form2 from form1 menu item Pin
Rick van Woudenberg23-Oct-09 0:57
Rick van Woudenberg23-Oct-09 0:57 
Questionhow to update progressbar in Child Form from Parent Form Pin
sandy_55723-Oct-09 0:39
sandy_55723-Oct-09 0:39 
AnswerRe: how to update progressbar in Child Form from Parent Form Pin
Rick van Woudenberg23-Oct-09 1:03
Rick van Woudenberg23-Oct-09 1:03 
GeneralRe: how to update progressbar in Child Form from Parent Form Pin
benjymous23-Oct-09 1:08
benjymous23-Oct-09 1:08 
GeneralRe: how to update progressbar in Child Form from Parent Form Pin
sandy_55723-Oct-09 2:16
sandy_55723-Oct-09 2:16 
AnswerRe: how to update progressbar in Child Form from Parent Form Pin
benjymous23-Oct-09 1:07
benjymous23-Oct-09 1:07 
QuestionDisplaying Chinese characters Crystal reports Pin
dasha_pl23-Oct-09 0:31
dasha_pl23-Oct-09 0:31 
QuestionWhy cant i do this? Pin
ONeil Tomlinson22-Oct-09 23:48
ONeil Tomlinson22-Oct-09 23:48 
AnswerRe: Why cant i do this? Pin
Calla22-Oct-09 23:50
Calla22-Oct-09 23:50 
AnswerRe: Why cant i do this? Pin
Christian Graus23-Oct-09 0:08
protectorChristian Graus23-Oct-09 0:08 
AnswerRe: Why cant i do this? Pin
dxlee23-Oct-09 5:00
dxlee23-Oct-09 5:00 
QuestionLast grandchild of a node in a tree Pin
devboycpp22-Oct-09 23:17
devboycpp22-Oct-09 23:17 
AnswerRe: Last grandchild of a node in a tree [modified] Pin
dan!sh 23-Oct-09 0:27
professional dan!sh 23-Oct-09 0:27 
GeneralRe: Last grandchild of a node in a tree [modified] Pin
devboycpp23-Oct-09 0:46
devboycpp23-Oct-09 0:46 
GeneralRe: Last grandchild of a node in a tree Pin
dan!sh 23-Oct-09 1:11
professional dan!sh 23-Oct-09 1:11 
GeneralRe: Last grandchild of a node in a tree Pin
devboycpp23-Oct-09 2:47
devboycpp23-Oct-09 2:47 
GeneralRe: Last grandchild of a node in a tree Pin
dan!sh 23-Oct-09 3:55
professional dan!sh 23-Oct-09 3:55 
GeneralRe: Last grandchild of a node in a tree Pin
devboycpp23-Oct-09 5:51
devboycpp23-Oct-09 5:51 
GeneralRe: Last grandchild of a node in a tree Pin
ely_bob23-Oct-09 6:50
professionalely_bob23-Oct-09 6:50 
GeneralRe: Last grandchild of a node in a tree Pin
devboycpp23-Oct-09 6:57
devboycpp23-Oct-09 6:57 
GeneralRe: Last grandchild of a node in a tree [modified] Pin
ely_bob23-Oct-09 7:50
professionalely_bob23-Oct-09 7:50 
here is an approximation since I don't know your exact structure:

<pre>

class address
{
      list<int> token;

}

list<address> addresses = Tree.MapAddress();
int generation =0;
for(int i=0;i < addresses.Count-1;i++)
{
   if(addresses[i+1].token[generation] > addresses[i].token[generation])
   {      Console.Writeline("Your function result Here");}            }
}

</pre>


Now I had some wonky recursion like I would need to skip children(closed leaf) and step into/out of children so you can navigate (almost as fast) using the address and recursion... but it takes a LOT of code. this is the smallest patch I can think of for your situation.


also you can change the generation by swapping out the generation number so if you wanted the line between great grand children and grand children switch 0->1, and voila.

Poke tongue | ;-P

modified on Friday, October 23, 2009 2:01 PM

GeneralRe: Last grandchild of a node in a tree Pin
devboycpp23-Oct-09 8:17
devboycpp23-Oct-09 8:17 
GeneralRe: Last grandchild of a node in a tree Pin
ely_bob23-Oct-09 8:26
professionalely_bob23-Oct-09 8:26 
QuestionHow to check status file Pin
Dedy Hartono22-Oct-09 22:59
Dedy Hartono22-Oct-09 22:59 
AnswerRe: How to check status file Pin
Christian Graus22-Oct-09 23:24
protectorChristian Graus22-Oct-09 23:24 

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.