Click here to Skip to main content
15,912,665 members
Home / Discussions / C#
   

C#

 
GeneralRe: Interop Question Pin
DrGreen30-Mar-04 8:30
DrGreen30-Mar-04 8:30 
GeneralRe: Interop Question Pin
Heath Stewart30-Mar-04 8:37
protectorHeath Stewart30-Mar-04 8:37 
Generalresizable panel Pin
cmarmr30-Mar-04 5:43
cmarmr30-Mar-04 5:43 
GeneralRe: resizable panel Pin
Peter Nirschl30-Mar-04 6:07
Peter Nirschl30-Mar-04 6:07 
GeneralRe: resizable panel Pin
cmarmr30-Mar-04 6:23
cmarmr30-Mar-04 6:23 
GeneralRe: resizable panel Pin
Heath Stewart30-Mar-04 6:25
protectorHeath Stewart30-Mar-04 6:25 
GeneralRe: resizable panel Pin
cmarmr30-Mar-04 7:02
cmarmr30-Mar-04 7:02 
GeneralRe: resizable panel Pin
Heath Stewart30-Mar-04 8:33
protectorHeath Stewart30-Mar-04 8:33 
Of course they can't change it unless you provide a way. It's compiled using a certain size and position. If you want the Panel to resize in relation to its container, look at the Anchor and Dock properties. With Anchor, if you anchor the control to opposite sides, it will be resized in relation the margin between its borders and that of the corresponding borders of the container control.

If you want your users to be able to resize it like you can in the designer, you'll have to provide a mechanism to do so, like handling the MouseDown to set a flag, the MouseMove event to resize or move the ocntrol if that flag is set, and the MouseUp event to reset the flag.

When you compile an application, it's runs according to how you program it. Application don't general allow for design-like changes to it. Part of the reason you compile an application is that people can't change it (easily).

 

Microsoft MVP, Visual C#
My Articles
GeneralPicture Flickering(Lagg) Pin
Anonymous30-Mar-04 3:56
Anonymous30-Mar-04 3:56 
GeneralRe: Picture Flickering(Lagg) Pin
Heath Stewart30-Mar-04 4:33
protectorHeath Stewart30-Mar-04 4:33 
GeneralRe: Picture Flickering(Lagg) Pin
Snowjim30-Mar-04 5:59
Snowjim30-Mar-04 5:59 
GeneralRe: Picture Flickering(Lagg) Pin
Stefan Troschuetz30-Mar-04 4:39
Stefan Troschuetz30-Mar-04 4:39 
GeneralRe: Picture Flickering(Lagg) Pin
Snowjim30-Mar-04 6:02
Snowjim30-Mar-04 6:02 
GeneralXml attributes in a combobox Pin
bertcox30-Mar-04 2:52
bertcox30-Mar-04 2:52 
GeneralRe: Xml attributes in a combobox Pin
Heath Stewart30-Mar-04 4:49
protectorHeath Stewart30-Mar-04 4:49 
GeneralRandom in C# Pin
bouli30-Mar-04 2:43
bouli30-Mar-04 2:43 
GeneralRe: Random in C# Pin
John Fisher30-Mar-04 4:07
John Fisher30-Mar-04 4:07 
GeneralRe: Random in C# Pin
Heath Stewart30-Mar-04 4:10
protectorHeath Stewart30-Mar-04 4:10 
GeneralRe: Random in C# Pin
bouli30-Mar-04 4:21
bouli30-Mar-04 4:21 
GeneralRe: Random in C# Pin
Heath Stewart30-Mar-04 4:26
protectorHeath Stewart30-Mar-04 4:26 
GeneralRe: Random in C# Pin
bouli30-Mar-04 4:32
bouli30-Mar-04 4:32 
GeneralRe: Random in C# Pin
Heath Stewart30-Mar-04 4:41
protectorHeath Stewart30-Mar-04 4:41 
GeneralRe: Random in C# Pin
Anonymous30-Mar-04 5:54
Anonymous30-Mar-04 5:54 
GeneralRe: Random in C# Pin
bouli30-Mar-04 5:58
bouli30-Mar-04 5:58 
GeneralRe: Random in C# Pin
Heath Stewart30-Mar-04 6:20
protectorHeath Stewart30-Mar-04 6:20 

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.