Forms design and resizable functionality

  • Thread starter Thread starter pinocchio
  • Start date Start date
P

pinocchio

Hello,
I have interesting problem. I need to create MDI application with
custom MDI child's windows. MDI childs should have rounded corners
and border with own style (not like windows default style). So I need
to cut corners, cut title bar (instead use own). But, when I cut all
borders (or use FormBorderStyle.none), I couldn't resize the form.
I hope, it's clear :)

My solution:
I tried to cut the form, and use Panel, cut it too, into shape of
border with width 3px and using even MouseMove and MouseDown define
my own resizing. But I don't thing this is the best solution.
A have also problem how to programm own resizing of form.

Could anyone help me? Thanks.
 
If you want to do something like, the only way i see, is to make your own resize routine

About how to do it, i think is not so complicated. You must capture the mouse move event to change the mouse pointer when it be near to the border (When I said border, I want to said your own border, it can be a panel control, or something like that). Then you verified if left mouse button is pressed, in order to know if you have to resize or not. When it become resized you must launch an OnResize event, and the other things are as natural as ever.

P.D.: If you look at mouse pointer you can find the resize pointers

I hope this help....
 
Back
Top