954,505 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Clip cursor problem

Hello all :

I 've created a simple form , when it's started a clip cursor called, but when I pressing by keyboard(Alt+Tab) for (moving between opened windows) , this clipping is canceled, Is there any idea to prevent this or stop it??
Thanks in advance.....

aminit
Junior Poster in Training
78 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

Edit the form code generated and add this line
this.Cursor = new System.Windows.Forms.Cursor(CursorPath);
It works with me well.

Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276
 

Hello
Thanks a lot for your answer, but is (cusrsorpath) a handle or what ?? can you please explain more

Thanks in advance.....

aminit
Junior Poster in Training
78 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

the cursor file (.cur)

Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276
 

Hello :

Thanks again for your answer , I was tried this.Cursor = new System.Windows.Forms.Cursor(Cursor1.cur);
an error occured(this name is not exist) and I created a cursor file, but I tried
Cursor.Clip = new Rectangle(x, y, w, h);
it was work but if I press (alt+tab) or start in the keyboard this clip is cancel , how can I prevent this until the form is closed???
Thanks in advance

aminit
Junior Poster in Training
78 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

look create your cursor and put it in specific path, take its path and follow my first answer.

Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276
 

Hello :
I was tried it too, any way thanks for your support and best wishes.....

aminit
Junior Poster in Training
78 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

send me your sample at my email [email]ramymahrous@gmail.com[/email]

Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276
 

Thanks a lot I'll send it to the address soon ..

aminit
Junior Poster in Training
78 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You