المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Curser and panel size change



C# Programming
05-26-2009, 01:11 AM
Hi!
I am trying to build a form that can resize objects(panels).
I am trying to this with cruser change and resize the panel with the mouse with the drag drop events.

I included the enter event but the point that I get from
System.Windows.Forms.Cursor.Position

is not changing no metter where I enter the panel object.

Can someone tell me how can I know in which point my mouse is located on the form and see if it equals to the panel.

another quastions is how I change the curser in the code???

I could not find a good example for this.
Does some one has something or can point me to a good code example??

Thanks http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif