Click here to Skip to main content
15,884,176 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: Windows Form Pin
Eddy Vluggen12-Aug-12 3:43
professionalEddy Vluggen12-Aug-12 3:43 
QuestionWindows Form Application Size Issue Pin
ukraju29-Jul-12 19:45
ukraju29-Jul-12 19:45 
AnswerRe: Windows Form Application Size Issue Pin
Simon_Whale29-Jul-12 20:11
Simon_Whale29-Jul-12 20:11 
AnswerRe: Windows Form Application Size Issue Pin
Bernhard Hiller29-Jul-12 22:07
Bernhard Hiller29-Jul-12 22:07 
AnswerRe: Windows Form Application Size Issue Pin
BillWoodruff11-Aug-12 15:31
professionalBillWoodruff11-Aug-12 15:31 
GeneralWindows Forms Application With Collapsible Panel Pin
ukraju20-Jul-12 20:15
ukraju20-Jul-12 20:15 
AnswerRe: Windows Forms Application With Collapsible Panel PinPopular
Eddy Vluggen21-Jul-12 8:16
professionalEddy Vluggen21-Jul-12 8:16 
GeneralRe: Windows Forms Application With Collapsible Panel Pin
BillWoodruff29-Jul-12 17:01
professionalBillWoodruff29-Jul-12 17:01 
I think you got the best possible advice from Eddie Vluggen in his post above: you need to "ground" yourself in the fundamentals of what Forms, and "container controls," like the Panel Control, are:

And, the fact that true "container controls," at design-time in Visual Studio, allow you to drag-and-drop other Controls within them, at which point those dropped Controls have their Parent property set to the Container Control they were dropped into: you hide the Parent container control: everything within it is hidden.

The only thing I can add here is to suggest that, to me, a "collapsible" Panel, implies that some part of it will always be visible: the simplest way to achieve that is, as Eddie suggested, to manipulate the Size property of the Panel using the Enter and Leave events of the Panel. If you want to leave the Panel "fully open" some of the time, when the user moves the mouse outside the Panel: that requires a different solution.

There are other, more sophisticated techniques (but still rather simple to code), for when you need multiple Panels that open and collapse within an outer Panel, leaving only one open, as in the famous "Outlook Bar" interface.

edit ... Hint: use Panels set to Dock.Top within an outer Panel, and respond to Click events on the inner panels by iterating the ControlCollection of the outer Panel, and doing the right thing to hide and collapse the inner Panels.

good luck, Bill
"Everything we call real is made of things that cannot be regarded as real." Niels Bohr


modified 11-Aug-12 21:34pm.

GeneralRe: Windows Forms Application With Collapsible Panel Pin
Ger Hayden1-Aug-12 19:45
Ger Hayden1-Aug-12 19:45 
GeneralRe: Windows Forms Application With Collapsible Panel Pin
BillWoodruff12-Aug-12 1:15
professionalBillWoodruff12-Aug-12 1:15 
Questionopen web page with out address bar from win forms Pin
vikaskardode6-Jul-12 6:32
vikaskardode6-Jul-12 6:32 
AnswerRe: open web page with out address bar from win forms Pin
Dave Kreskowiak6-Jul-12 9:46
mveDave Kreskowiak6-Jul-12 9:46 
JokeRe: open web page with out address bar from win forms Pin
Mycroft Holmes6-Jul-12 23:15
professionalMycroft Holmes6-Jul-12 23:15 
AnswerRe: open web page with out address bar from win forms Pin
Eddy Vluggen21-Jul-12 13:10
professionalEddy Vluggen21-Jul-12 13:10 
Questionat this point in time would a series of tutorials on WinForms be useful ? Pin
BillWoodruff30-Jun-12 18:34
professionalBillWoodruff30-Jun-12 18:34 
AnswerRe: at this point in time would a series of tutorials on WinForms be useful ? Pin
Paul Conrad30-Jun-12 19:18
professionalPaul Conrad30-Jun-12 19:18 
AnswerRe: at this point in time would a series of tutorials on WinForms be useful ? Pin
Richard MacCutchan30-Jun-12 21:32
mveRichard MacCutchan30-Jun-12 21:32 
AnswerRe: at this point in time would a series of tutorials on WinForms be useful ? Pin
Eddy Vluggen30-Jun-12 23:10
professionalEddy Vluggen30-Jun-12 23:10 
QuestionDisplay large content in windows application Pin
Rajeev_8721-Jun-12 13:18
Rajeev_8721-Jun-12 13:18 
AnswerRe: Display large content in windows application Pin
Mycroft Holmes21-Jun-12 16:36
professionalMycroft Holmes21-Jun-12 16:36 
GeneralRe: Display large content in windows application Pin
Richard MacCutchan21-Jun-12 22:47
mveRichard MacCutchan21-Jun-12 22:47 
Questionupdating, deleting adn adding rows in superlist control Pin
Kandepu Rajesh12-Jun-12 23:37
Kandepu Rajesh12-Jun-12 23:37 
AnswerRe: updating, deleting adn adding rows in superlist control Pin
Pete O'Hanlon13-Jun-12 0:01
mvePete O'Hanlon13-Jun-12 0:01 
QuestionError while binding the datatable to a superlist control Pin
Kandepu Rajesh8-Jun-12 0:07
Kandepu Rajesh8-Jun-12 0:07 
AnswerRe: Error while binding the datatable to a superlist control Pin
Eddy Vluggen8-Jun-12 0:33
professionalEddy Vluggen8-Jun-12 0:33 

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.