H
Heinz
Hi,
I have a form which has FormBorderStyle.None .There is only a 2 labels(1
main label , the other a small one at left down site of the form to resize)
on this Form.
I want to resize the form but dont know which events I need.
Have first try to add a MouseDown event on label2 to get the coordinate of
the mouse and store it in variables mousx , mousy .
Than I have add a MouseMove Event on label2
and calculate the difference of the current mouseposition and the ones
stored in mousx, mousy in it.
Than resize the form with the difference.
But its somehow false. When click left button on label2 and move the mouse
and stop it. The form still resize. it only stopes when I get the
mouseposition to the coordinates stored in mousx and mousy.
Have I even take the right way to resize a form with FormBorderStyle.None or
is there any simple way?
thx
I have a form which has FormBorderStyle.None .There is only a 2 labels(1
main label , the other a small one at left down site of the form to resize)
on this Form.
I want to resize the form but dont know which events I need.
Have first try to add a MouseDown event on label2 to get the coordinate of
the mouse and store it in variables mousx , mousy .
Than I have add a MouseMove Event on label2
and calculate the difference of the current mouseposition and the ones
stored in mousx, mousy in it.
Than resize the form with the difference.
But its somehow false. When click left button on label2 and move the mouse
and stop it. The form still resize. it only stopes when I get the
mouseposition to the coordinates stored in mousx and mousy.
Have I even take the right way to resize a form with FormBorderStyle.None or
is there any simple way?
thx