Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
GeneralRe: Who am I? Detecting the "current" control for a handler Pin
TJoe26-Sep-07 3:01
TJoe26-Sep-07 3:01 
GeneralRe: Who am I? Detecting the "current" control for a handler Pin
JoeRip26-Sep-07 3:07
JoeRip26-Sep-07 3:07 
GeneralRe: Who am I? Detecting the "current" control for a handler Pin
TJoe26-Sep-07 3:16
TJoe26-Sep-07 3:16 
GeneralRe: Who am I? Detecting the "current" control for a handler Pin
JoeRip26-Sep-07 3:18
JoeRip26-Sep-07 3:18 
GeneralRe: Who am I? Detecting the "current" control for a handler Pin
JoeRip26-Sep-07 3:21
JoeRip26-Sep-07 3:21 
GeneralRe: Who am I? Detecting the "current" control for a handler Pin
TJoe26-Sep-07 3:25
TJoe26-Sep-07 3:25 
GeneralRe: Who am I? Detecting the "current" control for a handler Pin
JoeRip26-Sep-07 3:34
JoeRip26-Sep-07 3:34 
GeneralRe: Who am I? Detecting the "current" control for a handler Pin
TJoe26-Sep-07 3:42
TJoe26-Sep-07 3:42 
To acheive multiple dimensions you can have an ArrayList of ArrayLists. If you are using .Net 2.0 then I would recommend using a List[^].

For your problem above, I would probably create a main ArrayList that holds ArrayLists. So for each row of controls you would create an ArrayList and add your controls, then add that ArrayList to the main ArrayList in the proper position.

Then to determine what row a given control exists in, I would use a Dictionary. Declared as "Dictionary<control, int32="">", the dictionary would map a control to it's associated row in the main ArrayList.

This way you could easily add additional controls to the row without having to create a new ArrayList.

Take care,
Tom

-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com

GeneralRe: Who am I? Detecting the &amp;amp;quot;current&amp;amp;quot; control for a handler Pin
Luc Pattyn26-Sep-07 3:58
sitebuilderLuc Pattyn26-Sep-07 3:58 
GeneralRe: Who am I? Detecting the &amp;quot;current&amp;quot; control for a handler Pin
TJoe26-Sep-07 3:22
TJoe26-Sep-07 3:22 
QuestionHow to extract HTML code From any webpage using C#.Net Pin
allivelu26-Sep-07 1:35
allivelu26-Sep-07 1:35 
AnswerRe: How to extract HTML code From any webpage using C#.Net Pin
Christian Graus26-Sep-07 1:46
protectorChristian Graus26-Sep-07 1:46 
AnswerRe: How to extract HTML code From any webpage using C#.Net Pin
Matthew Cuba26-Sep-07 2:00
Matthew Cuba26-Sep-07 2:00 
QuestionSimulator Pin
prog_omer_esmail26-Sep-07 1:13
prog_omer_esmail26-Sep-07 1:13 
QuestionRe: Simulator Pin
ESTAN26-Sep-07 1:24
ESTAN26-Sep-07 1:24 
AnswerRe: Simulator Pin
pmarfleet26-Sep-07 1:47
pmarfleet26-Sep-07 1:47 
GeneralRe: Simulator Pin
PaulPrice26-Sep-07 1:55
PaulPrice26-Sep-07 1:55 
GeneralRe: Simulator Pin
ESTAN26-Sep-07 2:02
ESTAN26-Sep-07 2:02 
GeneralRe: Simulator Pin
prog_omer_esmail26-Sep-07 3:12
prog_omer_esmail26-Sep-07 3:12 
GeneralRe: Simulator Pin
J4amieC26-Sep-07 3:35
J4amieC26-Sep-07 3:35 
GeneralRe: Simulator Pin
Pete O'Hanlon26-Sep-07 4:12
mvePete O'Hanlon26-Sep-07 4:12 
GeneralRe: Simulator Pin
prog_omer_esmail26-Sep-07 5:12
prog_omer_esmail26-Sep-07 5:12 
Questionsize of memorystream.toarray() Pin
JABIR E26-Sep-07 1:12
JABIR E26-Sep-07 1:12 
AnswerRe: size of memorystream.toarray() Pin
Guffa26-Sep-07 1:22
Guffa26-Sep-07 1:22 
QuestionError because of Empty Strings in Method Pin
daniel_v26-Sep-07 1:06
daniel_v26-Sep-07 1:06 

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.