Click here to Skip to main content
15,919,336 members
Home / Discussions / C#
   

C#

 
GeneralRe: OnEnter Event Pin
miah alom22-Aug-05 5:02
miah alom22-Aug-05 5:02 
GeneralRe: OnEnter Event Pin
miah alom22-Aug-05 5:59
miah alom22-Aug-05 5:59 
GeneralRe: OnEnter Event Pin
Agyeman22-Aug-05 8:02
Agyeman22-Aug-05 8:02 
GeneralRe: OnEnter Event Pin
nidhelp22-Aug-05 22:02
nidhelp22-Aug-05 22:02 
GeneralRe: OnEnter Event Pin
Agyeman23-Aug-05 2:44
Agyeman23-Aug-05 2:44 
GeneralRe: OnEnter Event Pin
Agyeman23-Aug-05 2:49
Agyeman23-Aug-05 2:49 
GeneralRe: OnEnter Event Pin
nidhelp23-Aug-05 5:46
nidhelp23-Aug-05 5:46 
Generalaccess autonincrement question Pin
theStorminMormon22-Aug-05 3:58
theStorminMormon22-Aug-05 3:58 
GeneralRe: access autonincrement question Pin
Guffa22-Aug-05 5:38
Guffa22-Aug-05 5:38 
GeneralRe: access autonincrement question Pin
theStorminMormon22-Aug-05 5:43
theStorminMormon22-Aug-05 5:43 
GeneralRe: access autonincrement question Pin
miah alom22-Aug-05 5:57
miah alom22-Aug-05 5:57 
GeneralRe: access autonincrement question Pin
Guffa22-Aug-05 6:38
Guffa22-Aug-05 6:38 
GeneralHorizontal Scroll Bar Pin
zaboboa22-Aug-05 3:47
zaboboa22-Aug-05 3:47 
GeneralRe: Horizontal Scroll Bar Pin
miah alom22-Aug-05 4:58
miah alom22-Aug-05 4:58 
GeneralRe: Horizontal Scroll Bar Pin
zaboboa22-Aug-05 6:17
zaboboa22-Aug-05 6:17 
GeneralRe: Horizontal Scroll Bar Pin
Dan Neely22-Aug-05 7:06
Dan Neely22-Aug-05 7:06 
GeneralRe: Horizontal Scroll Bar Pin
zaboboa22-Aug-05 7:29
zaboboa22-Aug-05 7:29 
GeneralGrading out DataGrid Pin
zaboboa22-Aug-05 3:18
zaboboa22-Aug-05 3:18 
GeneralRe: Grading out DataGrid Pin
miah alom22-Aug-05 4:57
miah alom22-Aug-05 4:57 
Generaltree view question c# Pin
fady_sayegh22-Aug-05 3:13
fady_sayegh22-Aug-05 3:13 
GeneralRe: tree view question c# Pin
miah alom22-Aug-05 5:51
miah alom22-Aug-05 5:51 
GeneralRe: tree view question c# Pin
Robert Rohde22-Aug-05 8:56
Robert Rohde22-Aug-05 8:56 
Lets assume you have all keys in a string array 'keys' and als names in a string array 'names':

HashTable keysToNodesHash = new HashTable();
for (int i = 0; i < keys.Length; i++) {
TreeNodeCollection nodes = treeView1.Nodes;
if (keys[i].Length > 2)
nodes = (TreeNodeCollection)hash[keys[i].SubString(0, keys[i].Length - 2)];
TreeNode newNode = nodes.Add(names[i]);
keysToNodesHash.Add(keys[i], newNodes.Nodes);
}


Haven't tested it but it should give you the basic idea. Note that this will only function properly if the nodes come in the right order (liek in your example). If this isn't true you will have to sort them before this operation.
GeneralContext Menu's Pin
exhaulted22-Aug-05 3:03
exhaulted22-Aug-05 3:03 
GeneralChanging the service name at installation time Pin
ankit.singhal@gmail.com22-Aug-05 2:34
ankit.singhal@gmail.com22-Aug-05 2:34 
GeneralRe: Changing the service name at installation time Pin
miah alom22-Aug-05 5:53
miah alom22-Aug-05 5:53 

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.