c# coding question for you if anyone would care to help out…
Create a form and drop a panel and a button on the form a few cm appart.
In the onclick event of the button I want the button to embed itself within the panel and take up the full size of the panel.
How do you embed a control within another control at runtime?
My background is one of Delphi - in which case you just change the parent and set the alignment.
Taking up the full size of the parent control in C# should just be a matter of setting the dock property - but how do you embed the control in the first place?
DT - thats fantastic mate.
Next DD/TPR meet I’ll gladly be buying you a pint.
erm - you’re not going to believe this but I went back to my little test program commented out the various useless invalidate and bringtofront calls that I’d been experimenting with, so that I was left with this on the button1 click