Click here to Skip to main content
15,900,589 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: How can I start an app with window hidden? Pin
FinishedOnTime23-Mar-07 6:25
FinishedOnTime23-Mar-07 6:25 
GeneralRe: How can I start an app with window hidden? Pin
Pete O'Hanlon25-Mar-07 10:53
mvePete O'Hanlon25-Mar-07 10:53 
QuestionHelp me Pin
Member 395361323-Mar-07 1:23
Member 395361323-Mar-07 1:23 
AnswerRe: Help me Pin
Pete O'Hanlon23-Mar-07 1:43
mvePete O'Hanlon23-Mar-07 1:43 
Questiongisplay messeges Pin
Member 395361323-Mar-07 1:17
Member 395361323-Mar-07 1:17 
AnswerRe: gisplay messeges Pin
Pete O'Hanlon23-Mar-07 1:48
mvePete O'Hanlon23-Mar-07 1:48 
GeneralRe: gisplay messeges Pin
Marcus J. Smith23-Mar-07 8:56
professionalMarcus J. Smith23-Mar-07 8:56 
Questionslightly complex help with the splitcontainer needed! plz Pin
giddy_guitarist22-Mar-07 21:44
giddy_guitarist22-Mar-07 21:44 
HI ,

i'm trying to make a simple version of VS's collapsible pannels.

I know there are collapsible panels in the articles section but i want to keep it simple.

I use the [Panel] control , i can have it hide and show with the user clicking or hovering over a long flat(looks better) button.But i still dont have one important functionality. The pin feature.

In VS , if i click the pin/auto hide button the controls in the panel show up on a SplitContainer panel:
http://gidsfiles.googlepages.com/splitcontainer.jpg[^]

Even outlook 2007 and probably older versions have this feature:
http://gidsfiles.googlepages.com/outlook_expand_todo.jpg[^]
If i click that button , the collapsible panel is no more collapsible and is now in a splitcontainer panel.
http://gidsfiles.googlepages.com/outlook_expand_splitview.jpg[^]

Continuing with my panel concept,i have a litte pin button , i tried removing the Panel from the Form.Controls collection and adding it into splitcontainer.Controls when it is clicked.

Like this:
Code:

private void btnPin_Click(object sender, EventArgs e) {<br />
 if (splitContainer1.Panel2Collapsed) <br />
  { <br />
   splitContainer1.Panel2Collapsed = false; this.Controls.Remove(panel1);<br />
   splitContainer1.Panel2.Controls.Add(panel1);<br />
   panel1.Visible = true;<br />
 } else { <br />
   splitContainer1.Panel2Collapsed = true;<br />
   splitContainer1.Panel2.Controls.Remove(panel1); <br />
   this.Controls.Add(panel1); panel1.Location = new Point(12, 277);<br />
   panel1.Visible = true; <br />
 } <br />
}<br />


Yes , it does not work at all , the panel never shows in the split container.

Could someone please help out?

Thanks so much
Gideon
AnswerRe: slightly complex help with the splitcontainer needed! plz Pin
sinosoidal23-Mar-07 1:14
sinosoidal23-Mar-07 1:14 
QuestionResource error Pin
rushiraj.jhala22-Mar-07 19:14
rushiraj.jhala22-Mar-07 19:14 
Questionhelp on DOS commands needed Pin
nithin24822-Mar-07 11:13
nithin24822-Mar-07 11:13 
QuestionHow to enumerate a ToolStripMenuItems's events Pin
hellspawnfr22-Mar-07 9:54
hellspawnfr22-Mar-07 9:54 
QuestionHelp me Pin
sureshmyway22-Mar-07 4:16
sureshmyway22-Mar-07 4:16 
QuestionText box validation Pin
Ruchi0322-Mar-07 0:49
Ruchi0322-Mar-07 0:49 
AnswerRe: Text box validation Pin
Pete O'Hanlon22-Mar-07 2:30
mvePete O'Hanlon22-Mar-07 2:30 
GeneralRe: Text box validation Pin
Ruchi0322-Mar-07 17:05
Ruchi0322-Mar-07 17:05 
QuestionHelp with a HelpButton Pin
PIEBALDconsult21-Mar-07 7:36
mvePIEBALDconsult21-Mar-07 7:36 
AnswerRe: Help with a HelpButton Pin
Mike Dimmick22-Mar-07 5:50
Mike Dimmick22-Mar-07 5:50 
Questionapplication is not starting up at windows startup Pin
sainyam20-Mar-07 22:14
sainyam20-Mar-07 22:14 
AnswerRe: application is not starting up at windows startup Pin
Tirthadip20-Mar-07 23:42
Tirthadip20-Mar-07 23:42 
AnswerRe: application is not starting up at windows startup Pin
Dave Kreskowiak21-Mar-07 3:54
mveDave Kreskowiak21-Mar-07 3:54 
QuestionQuestion about C++ and C# ... Pin
Yanshof20-Mar-07 20:23
Yanshof20-Mar-07 20:23 
AnswerRe: Question about C++ and C# ... Pin
Christian Graus23-Mar-07 4:44
protectorChristian Graus23-Mar-07 4:44 
QuestionHow to define a visual scheme for a GUI *including* text? Pin
KeironN20-Mar-07 0:59
KeironN20-Mar-07 0:59 
AnswerRe: How to define a visual scheme for a GUI *including* text? Pin
Pete O'Hanlon20-Mar-07 1:46
mvePete O'Hanlon20-Mar-07 1:46 

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.