Click here to Skip to main content
15,885,891 members
Home / Discussions / C#
   

C#

 
QuestionCreate buttons dinamyclly Pin
geniaz129-May-09 5:03
geniaz129-May-09 5:03 
GeneralRe: Create buttons dinamyclly Pin
musefan29-May-09 5:08
musefan29-May-09 5:08 
AnswerRe: Create buttons dinamyclly Pin
EliottA29-May-09 5:20
EliottA29-May-09 5:20 
GeneralRe: Create buttons dinamyclly Pin
geniaz129-May-09 5:51
geniaz129-May-09 5:51 
GeneralRe: Create buttons dinamyclly Pin
Douglas Kirk29-May-09 7:08
Douglas Kirk29-May-09 7:08 
GeneralRe: Create buttons dinamyclly Pin
Moreno Airoldi29-May-09 7:15
Moreno Airoldi29-May-09 7:15 
AnswerRe: Create buttons dinamyclly Pin
Luc Pattyn29-May-09 8:36
sitebuilderLuc Pattyn29-May-09 8:36 
QuestionUserControl Docking and padding question Pin
EliottA29-May-09 5:02
EliottA29-May-09 5:02 
I'm editing an existing library of user controls and I must admit, my experience is limited. These user controls are a combination of other user controls, mainly buttons and and panels. They where created to mimic the companies existing controls used in webapps for our desktop applications. Simple, and it works but they where initially designed for limited scalability.

So now the requirement emerges that each control should be resizable without altering the relative position of controls, some of which are transparent. I'm implementing this by, what appeared to be the easy task of reordering controls in the document outline and editing each controls dock and padding properties, which worked fine for a couple of controls.

Now I have the following outline: (control names reduced to simplicity to avoid confusion)

|---UserControl
    |---Panel1
        |---Panel2
            |---Panel3
                |---Button1
                |---Button2
                |---Button3


I dock Panel1 to DockStyle.Fill to the Parent UserControl to ensure that the control is resizable for obvious reasons, My problem is Panel2, which is overlayed on Panel1 by 6 pixels from the left and right respectively, I wish to keep this same fixed distance from the parent despite resizing, so I set dock to Fill and padding for left and right to 6 each, figuring this would work. It doesn't, which makes me feel I misunderstand the usage of Padding to begin with.

Any suggestions on where I went wrong and what would be the proper usage to enable this resizable implementation work as intended?

Sorry for weak explanation / poor ASCII art.


AnswerRe: UserControl Docking and padding question Pin
musefan29-May-09 5:23
musefan29-May-09 5:23 
GeneralRe: UserControl Docking and padding question Pin
EliottA29-May-09 6:10
EliottA29-May-09 6:10 
GeneralRe: UserControl Docking and padding question Pin
musefan29-May-09 6:21
musefan29-May-09 6:21 
GeneralRe: UserControl Docking and padding question Pin
EliottA29-May-09 6:32
EliottA29-May-09 6:32 
Questiondesign pattern needed (for C#) Pin
NaNg1524129-May-09 4:54
NaNg1524129-May-09 4:54 
AnswerRe: design pattern needed (for C#) Pin
Ennis Ray Lynch, Jr.29-May-09 4:58
Ennis Ray Lynch, Jr.29-May-09 4:58 
GeneralRe: design pattern needed (for C#) Pin
NaNg1524129-May-09 5:14
NaNg1524129-May-09 5:14 
GeneralRe: design pattern needed (for C#) Pin
EliottA29-May-09 5:53
EliottA29-May-09 5:53 
GeneralRe: design pattern needed (for C#) Pin
NaNg1524129-May-09 11:05
NaNg1524129-May-09 11:05 
AnswerRe: design pattern needed (for C#) Pin
DaveyM6929-May-09 6:20
professionalDaveyM6929-May-09 6:20 
QuestionThrottle user input Pin
edlanka29-May-09 3:30
edlanka29-May-09 3:30 
AnswerRe: Throttle user input Pin
Ennis Ray Lynch, Jr.29-May-09 3:44
Ennis Ray Lynch, Jr.29-May-09 3:44 
AnswerRe: Throttle user input Pin
Luc Pattyn29-May-09 3:53
sitebuilderLuc Pattyn29-May-09 3:53 
QuestionConnecting C# desktop application with web database Pin
sachees12329-May-09 2:31
sachees12329-May-09 2:31 
AnswerRe: Connecting C# desktop application with web database Pin
Paddy Boyd29-May-09 2:35
Paddy Boyd29-May-09 2:35 
AnswerRe: Connecting C# desktop application with web database Pin
Henry Minute29-May-09 2:46
Henry Minute29-May-09 2:46 
AnswerRe: Connecting C# desktop application with web database Pin
Rob Philpott29-May-09 2:59
Rob Philpott29-May-09 2:59 

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.