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

C#

 
QuestionUsing a Dictionary, Generic List or a good old fashioned Array??? Pin
Jammer7-Mar-08 9:30
Jammer7-Mar-08 9:30 
GeneralRe: Using a Dictionary, Generic List or a good old fashioned Array??? Pin
Pete O'Hanlon7-Mar-08 9:44
mvePete O'Hanlon7-Mar-08 9:44 
GeneralRe: Using a Dictionary, Generic List or a good old fashioned Array??? Pin
Jammer7-Mar-08 10:02
Jammer7-Mar-08 10:02 
GeneralRe: Using a Dictionary, Generic List or a good old fashioned Array??? Pin
Pete O'Hanlon7-Mar-08 10:04
mvePete O'Hanlon7-Mar-08 10:04 
GeneralRe: Using a Dictionary, Generic List or a good old fashioned Array??? Pin
Jammer7-Mar-08 10:23
Jammer7-Mar-08 10:23 
GeneralRe: Using a Dictionary, Generic List or a good old fashioned Array??? Pin
Luc Pattyn7-Mar-08 10:40
sitebuilderLuc Pattyn7-Mar-08 10:40 
GeneralRe: Using a Dictionary, Generic List or a good old fashioned Array??? Pin
Jammer7-Mar-08 10:42
Jammer7-Mar-08 10:42 
GeneralAnchors, MinSize, and AutoScroll Pin
eggsovereasy7-Mar-08 9:04
eggsovereasy7-Mar-08 9:04 
I have a situation where I have a panel inside another panel (we'll call them innerPanel and outerPanel). outerPanel is anchored on all four sides so it expands and contracts with the window. outerPanel also has the AutoScroll property set to true.

If I put innerPanel inside outerPanel and anchor it left, right, and top then when I make the window very short scroll bars appear on outerPanel. However, innerPanel's height will not expand when I expand the window. This is what I expect to happen.

If I set the anchors on innerPanel to all four sides it expands and contracts with the window. However, sometimes innerPanel shrinks too small to see it's contents. This is the behavior I expect.

Now, if I set a minimum width on innerPanel and anchor to all four sides it will expand with the window like I want, but when I reach that minimum size innerPanel just gets cut off, the scroll bars never appear. This is absolutely not what I expect.

Am I doing something wrong? I want innerPanel to expand freely in all directions and contract to a minimum size, then if it's container is too small for innerPanel I want scroll bars to appear.

Obviously the simple solution here is to set AutoScroll to true on innerPanel and anchor it to all four sides, but in my real application there are several innerPanels and it would look ridiculous to have seven scroll bars on the page.

Thank you in advance.
GeneralRe: Anchors, MinSize, and AutoScroll Pin
Luc Pattyn7-Mar-08 9:23
sitebuilderLuc Pattyn7-Mar-08 9:23 
GeneralRe: Anchors, MinSize, and AutoScroll Pin
eggsovereasy7-Mar-08 11:41
eggsovereasy7-Mar-08 11:41 
GeneralTab delimited parsing help Pin
CeleryGod7-Mar-08 8:57
CeleryGod7-Mar-08 8:57 
GeneralRe: Tab delimited parsing help Pin
snorkie7-Mar-08 9:13
professionalsnorkie7-Mar-08 9:13 
GeneralRe: Tab delimited parsing help Pin
KaptinKrunch7-Mar-08 10:57
KaptinKrunch7-Mar-08 10:57 
GeneralXML comments header Pin
Imtiaz Murtaza7-Mar-08 8:45
Imtiaz Murtaza7-Mar-08 8:45 
GeneralRe: XML comments header Pin
led mike7-Mar-08 9:22
led mike7-Mar-08 9:22 
GeneralRe: XML comments header Pin
Not Active7-Mar-08 10:04
mentorNot Active7-Mar-08 10:04 
GeneralRe: XML comments header Pin
led mike7-Mar-08 10:44
led mike7-Mar-08 10:44 
GeneralRe: XML comments header Pin
Kevin McFarlane7-Mar-08 12:15
Kevin McFarlane7-Mar-08 12:15 
GeneralRe: XML comments header Pin
Not Active7-Mar-08 15:15
mentorNot Active7-Mar-08 15:15 
QuestionContext Sensitive Help Help? Pin
UTRocketFan7-Mar-08 7:59
UTRocketFan7-Mar-08 7:59 
GeneralRe: Context Sensitive Help Help? Pin
Giorgi Dalakishvili7-Mar-08 8:35
mentorGiorgi Dalakishvili7-Mar-08 8:35 
Questionexecute jar file in c# Pin
CreativeR867-Mar-08 7:01
CreativeR867-Mar-08 7:01 
GeneralRe: execute jar file in c# Pin
Jimmanuel7-Mar-08 9:27
Jimmanuel7-Mar-08 9:27 
GeneralRe: execute jar file in c# Pin
Luc Pattyn7-Mar-08 9:28
sitebuilderLuc Pattyn7-Mar-08 9:28 
GeneralRe: execute jar file in c# Pin
CreativeR867-Mar-08 21:24
CreativeR867-Mar-08 21: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.