Ok I sort of got what I wanted working. to do this I put in the following code:
-
public frm()
-
{
-
InitializeComponent();
-
this.Padding = new Padding(0, 0, 0, 0);
-
//This above will then initiate the new Padding call;
-
}
-
-
public new Padding Padding
-
{
-
get
-
{
-
Padding _Padding = base.Padding;
-
_Padding.Top -= 20;
-
return _Padding;
-
}
-
set
-
{
-
value.Top += 20;
-
base.Padding = new Padding(
-
value.Left,
-
value.Top,
-
value.Right,
-
value.Bottom);
-
}
-
}
-
//-------------------------------------------------
Ok the idea here is that even when the user specifies a padding of (0,0,0,0) they will get a padding of (0,20,0,0) and although they will be able to see this on the screen, the padding will still tell them the top padding is (0).
Ideally I'll change the (20) value to the height of my title bar, and the left right and top to whatever bordering I want.
This way I dont need to create any extra controls on my form to handle my control region.
However I would still like to fiugre out a way so I can create different control regions on my form. but this will do for now.
Thanks for all the help.If I had paid a bit closer attention yesterday I might have figured it out from your first reply.