Click here to Skip to main content
15,915,093 members
Home / Discussions / C#
   

C#

 
Questionhow to use cast linq concept Pin
Member 100705702-Aug-16 2:27
Member 100705702-Aug-16 2:27 
AnswerRe: how to use cast linq concept Pin
OriginalGriff2-Aug-16 2:42
mveOriginalGriff2-Aug-16 2:42 
QuestionEager loading question Pin
Member 93644551-Aug-16 21:53
Member 93644551-Aug-16 21:53 
AnswerRe: Eager loading question Pin
Nathan Minier2-Aug-16 2:58
professionalNathan Minier2-Aug-16 2:58 
AnswerRe: Eager loading question Pin
Agent__0073-Aug-16 18:52
professionalAgent__0073-Aug-16 18:52 
Question.. Pin
Daniyaltjm1-Aug-16 20:49
Daniyaltjm1-Aug-16 20:49 
AnswerRe: check the password wi-fi in c# Pin
Richard MacCutchan1-Aug-16 22:11
mveRichard MacCutchan1-Aug-16 22:11 
General... Pin
Daniyaltjm1-Aug-16 22:14
Daniyaltjm1-Aug-16 22:14 
GeneralRe: check the password wi-fi in c# Pin
OriginalGriff1-Aug-16 22:41
mveOriginalGriff1-Aug-16 22:41 
GeneralMessage Closed Pin
1-Aug-16 22:46
Daniyaltjm1-Aug-16 22:46 
GeneralRe: check the password wi-fi in c# Pin
OriginalGriff1-Aug-16 22:50
mveOriginalGriff1-Aug-16 22:50 
GeneralMessage Closed Pin
1-Aug-16 23:05
Daniyaltjm1-Aug-16 23:05 
GeneralRe: check the password wi-fi in c# Pin
Pete O'Hanlon2-Aug-16 0:34
mvePete O'Hanlon2-Aug-16 0:34 
GeneralRe: check the password wi-fi in c# Pin
Richard MacCutchan1-Aug-16 23:03
mveRichard MacCutchan1-Aug-16 23:03 
GeneralMessage Closed Pin
1-Aug-16 23:11
Daniyaltjm1-Aug-16 23:11 
GeneralRe: check the password wi-fi in c# Pin
Richard MacCutchan1-Aug-16 23:19
mveRichard MacCutchan1-Aug-16 23:19 
GeneralRe: check the password wi-fi in c# Pin
Daniyaltjm1-Aug-16 23:38
Daniyaltjm1-Aug-16 23:38 
GeneralRe: check the password wi-fi in c# Pin
Richard MacCutchan2-Aug-16 0:36
mveRichard MacCutchan2-Aug-16 0:36 
GeneralRe: check the password wi-fi in c# Pin
Daniyaltjm2-Aug-16 1:04
Daniyaltjm2-Aug-16 1:04 
JokeRe: check the password wi-fi in c# Pin
Richard MacCutchan2-Aug-16 1:09
mveRichard MacCutchan2-Aug-16 1:09 
GeneralRe: check the password wi-fi in c# Pin
Daniyaltjm2-Aug-16 3:21
Daniyaltjm2-Aug-16 3:21 
GeneralRe: check the password wi-fi in c# Pin
Pete O'Hanlon2-Aug-16 1:44
mvePete O'Hanlon2-Aug-16 1:44 
Generalhow to group the controls in to single component. Pin
Member 126599261-Aug-16 18:42
Member 126599261-Aug-16 18:42 
GeneralRe: how to group the controls in to single component. Pin
OriginalGriff1-Aug-16 20:23
mveOriginalGriff1-Aug-16 20:23 
GeneralRe: how to group the controls in to single component. Pin
BillWoodruff2-Aug-16 2:18
professionalBillWoodruff2-Aug-16 2:18 
In addition to the strategies that OriginalGriff told you about, you could use a ContainerControl like a SplitterPanel to create an easy pop-out - pop-back userinterface. Let's say your Buttons were all in Panel1 of the SplitContainer; then you can show/hide it by:
C#
private void button1_Click(object sender, EventArgs e)
{
    splitContainer1.Panel1Collapsed = ! splitContainer1.Panel1Collapsed;
}
To get this to work as one might expect:

for the SplitContainer:

0. set appropriate MinimumSize and MaximumSize values.

1. set the 'SplitterDistance property to the width of the left Panel.

2. set IsSplitterFixed property to 'true if you are not going to allow the user to re-size the Panels

for the Panels

1. set the Panel1MinSize and Panel2MinSize (int) properties to appropriate values

If the 'Orientation property of the SplitterPanel is 'Vertical, then the two min size properties are going to set the width of the Panels.

~

Keep in mind that when the collapsed Panel1 is expanded, the Controls placed in Panel2 are going to move depending on how you set their Anchor/Dock properties.
«There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008

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.