How can I enable users to resize a panel at runtime by dragging a corner?
You could intercept the mouse location and the click.. if it's in a corner then set a resizing boolean and then on the mousemove event you could implement something like this..
if (_resizing)
{
this.Height = top + e.Y;
this.Width = width + e.X;
}
I don't know about dragging corners, but you could dock the panel and use splitters to provide a place for users to resize the docked regions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With