Click here to Skip to main content
15,922,533 members
Home / Discussions / C#
   

C#

 
GeneralRe: Limiting the bandwidth Pin
Dave Kreskowiak10-Jul-04 5:39
mveDave Kreskowiak10-Jul-04 5:39 
GeneralRe: Limiting the bandwidth Pin
pi_trek10-Jul-04 8:04
pi_trek10-Jul-04 8:04 
GeneralI would like to add programmatically a new element(c# or VB.NET) in the header of my aspx page. Pin
zoltix9-Jul-04 0:25
zoltix9-Jul-04 0:25 
GeneralRe: I would like to add programmatically a new element(c# or VB.NET) in the header of my aspx page. Pin
Colin Angus Mackay9-Jul-04 2:14
Colin Angus Mackay9-Jul-04 2:14 
GeneralRe: I would like to add programmatically a new element(c# or VB.NET) in the header of my aspx page. Pin
zoltix9-Jul-04 2:31
zoltix9-Jul-04 2:31 
GeneralDouble buffering Pin
Atlemann8-Jul-04 23:59
Atlemann8-Jul-04 23:59 
GeneralRe: Double buffering Pin
Heath Stewart9-Jul-04 4:18
protectorHeath Stewart9-Jul-04 4:18 
General2D Array modification Pin
saud_a_k8-Jul-04 23:59
saud_a_k8-Jul-04 23:59 
I have a TreeView tv1, I am adding nodes and their child nodes. I am storin the values (no. of nodes) in a 2D array. like.. I have a 2D array called
int nodes[][], and a var called int parents, (both global & static),am storing the no of the parent in nodes[0][0], and the number of children that parent has in nodes[0][1].
Ex.
Say I add two parents
then:
nodes[0][0] = 1; //first parent
nodes[0][1] = 0; //no children added 
nodes[1][0] = 2; //second parent
nodes[1][1] = 0; //no children added 

then say I add two children to the first node-
then:
nodes
nodes[0][0] = 1; //first parent
nodes[0][1] = 2; //2 children added //changed 
nodes[1][0] = 2; //second parent
nodes[1][1] = 0; //no children added 


This works fine but removal of nodes is the problem. I can remove a child and say
nodes[tv.SelectedNode][1]--;
I can remove a parent without children by:
nodes[tv.SelectedNode][1] = 0;<br />
  parents--;

The problem is in removing the parents with children: Mad | :mad:
I tried to make another function called CopyNodes(int [][],int selectednode)
where I make a temmp 2D array and when I encountered the var selectednode I skipped that part to copy array elements through 2 for loops (like you copy 2D arrays) But somithing is wrong & the array cannot remove the parent with children, & decrement the no. of elements of the array.
I did my best..
Please HELP ME!!Eek! | :eek:
PLEASE!!Sigh | :sigh:


_____________________________________________________
Yea! I could be wrong...
GeneralRe: 2D Array modification Pin
Heath Stewart9-Jul-04 3:57
protectorHeath Stewart9-Jul-04 3:57 
GeneralRe: 2D Array modification Pin
saud_a_k12-Jul-04 18:21
saud_a_k12-Jul-04 18:21 
GeneralRe: 2D Array modification Pin
saud_a_k12-Jul-04 21:32
saud_a_k12-Jul-04 21:32 
QuestionHow to add a button in the caption bar of a window Pin
bouli8-Jul-04 22:11
bouli8-Jul-04 22:11 
AnswerRe: How to add a button in the caption bar of a window Pin
Anonymous9-Jul-04 1:37
Anonymous9-Jul-04 1:37 
GeneralRe: How to add a button in the caption bar of a window Pin
saud_a_k9-Jul-04 2:02
saud_a_k9-Jul-04 2:02 
AnswerRe: How to add a button in the caption bar of a window Pin
Heath Stewart9-Jul-04 3:52
protectorHeath Stewart9-Jul-04 3:52 
GeneralRe: How to add a button in the caption bar of a window Pin
bouli9-Jul-04 3:56
bouli9-Jul-04 3:56 
GeneralRe: How to add a button in the caption bar of a window Pin
Heath Stewart9-Jul-04 4:38
protectorHeath Stewart9-Jul-04 4:38 
GeneralRe: How to add a button in the caption bar of a window Pin
bouli9-Jul-04 4:45
bouli9-Jul-04 4:45 
GeneralSending multiple values(Array) from one page to other Pin
Member 11955128-Jul-04 21:14
Member 11955128-Jul-04 21:14 
GeneralRe: Sending multiple values(Array) from one page to other Pin
Heath Stewart9-Jul-04 3:29
protectorHeath Stewart9-Jul-04 3:29 
GeneralDynamiclly naming variables Pin
saud_a_k8-Jul-04 20:45
saud_a_k8-Jul-04 20:45 
GeneralRe: Dynamiclly naming variables Pin
etfintnick8-Jul-04 23:04
etfintnick8-Jul-04 23:04 
GeneralRe: Dynamiclly naming variables Pin
etfintnick8-Jul-04 23:06
etfintnick8-Jul-04 23:06 
GeneralRe: Dynamiclly naming variables Pin
etfintnick8-Jul-04 23:08
etfintnick8-Jul-04 23:08 
GeneralRe: Dynamiclly naming variables Pin
saud_a_k8-Jul-04 23:34
saud_a_k8-Jul-04 23:34 

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.