No border style 2

G

Guest

hi,

sorry about the first message; i accidentally clicked post. anyway, i want
to make a modern looking app like quicktime that has not got that bar at the
top with the title in it and the controlbox. i have put a no border style
property on the form and have replace the control box with a menustrip.

i asked a friend how to make my form moveable and he could only make my form
moveable if you click the form, not the menustrip. how do you make the form
move by clickeing the menustrip?

my second question is how do you resize the window ( i dont mean
maximize/minimize)?

can anyone help me?
 
S

Siva M

Hello,

To move the form by clicking on the menustrip, have the following code in
the mouse-down event of the menu strip:

MenuStrip1.Capture = false;
Message msg = Message.Create(Handle, WM_NCLBUTTONDOWN, (IntPtr)HT_CAPTION,
IntPtr.Zero);
WndProc(msg);

At the class level, have these declarations:

private readonly int WM_NCLBUTTONDOWN = 0xa1;
private readonly int HT_CAPTION = 0x2;

For the second question, check this one:
http://www.c-sharpcorner.com/winforms/RubberBandEffectSB001.asp (I haven't
tried this though).

HTH

message hi,

sorry about the first message; i accidentally clicked post. anyway, i want
to make a modern looking app like quicktime that has not got that bar at the
top with the title in it and the controlbox. i have put a no border style
property on the form and have replace the control box with a menustrip.

i asked a friend how to make my form moveable and he could only make my form
moveable if you click the form, not the menustrip. how do you make the form
move by clickeing the menustrip?

my second question is how do you resize the window ( i dont mean
maximize/minimize)?

can anyone help me?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top