Click here to Skip to main content
15,922,696 members
Home / Discussions / C#
   

C#

 
GeneralRe: CPropertySheet Pin
James T. Johnson27-Aug-02 17:52
James T. Johnson27-Aug-02 17:52 
GeneralRe: CPropertySheet Pin
candan27-Aug-02 20:06
professionalcandan27-Aug-02 20:06 
GeneralRe: CPropertySheet Pin
James T. Johnson27-Aug-02 20:11
James T. Johnson27-Aug-02 20:11 
GeneralRe: CPropertySheet Pin
leppie27-Aug-02 21:42
leppie27-Aug-02 21:42 
GeneralJames, how do i upload? Pin
leppie27-Aug-02 22:00
leppie27-Aug-02 22:00 
GeneralRe: James, how do i upload? Pin
Mazdak27-Aug-02 22:23
Mazdak27-Aug-02 22:23 
GeneralRe: James, how do i upload? Pin
James T. Johnson28-Aug-02 6:06
James T. Johnson28-Aug-02 6:06 
GeneralMouse Capture Pin
Alex Korchemniy27-Aug-02 15:12
Alex Korchemniy27-Aug-02 15:12 
My application needs to restrict the cursor to a rectangular region. How do I do this?

I've tried using the mousemove event (of the form). When the mouse moves out of the rectange I use SetCursorPos. But this ends up being a mess because the mouse cursor "blinks" (mouse cursor apears in two locations), because it does pass the region and has to be put back in.

Another approach I tried. I used a lowlevel mouse hook. If the mouse went out of the rectangle I would mark the message as handled, keeping the message from going any further. The cursor would be positions on the edge of the rectangle (closest to where the real position would be). But even this approach was flawed because the mouse still "blinked". Appearently the cursor is drawn on the screen before the message gets to my hook.

Is there a way to do this?
GeneralRe: Mouse Capture Pin
Alastair Stell27-Aug-02 17:04
Alastair Stell27-Aug-02 17:04 
GeneralError when converting to use UDP Pin
Luis Alonso Ramos27-Aug-02 14:34
Luis Alonso Ramos27-Aug-02 14:34 
GeneralRe: Error when converting to use UDP Pin
Michael Mac28-Aug-02 2:15
Michael Mac28-Aug-02 2:15 
GeneralRe: Error when converting to use UDP Pin
Luis Alonso Ramos28-Aug-02 3:04
Luis Alonso Ramos28-Aug-02 3:04 
GeneralRe: Error when converting to use UDP Pin
Michael Mac28-Aug-02 3:51
Michael Mac28-Aug-02 3:51 
GeneralRe: Error when converting to use UDP Pin
Luis Alonso Ramos28-Aug-02 4:14
Luis Alonso Ramos28-Aug-02 4:14 
GeneralRe: Error when converting to use UDP Pin
Russell Morris28-Aug-02 4:36
Russell Morris28-Aug-02 4:36 
GeneralRe: Error when converting to use UDP Pin
Luis Alonso Ramos28-Aug-02 4:44
Luis Alonso Ramos28-Aug-02 4:44 
GeneralQuick Question Pin
Alex Korchemniy27-Aug-02 8:57
Alex Korchemniy27-Aug-02 8:57 
GeneralRe: Quick Question Pin
leppie27-Aug-02 9:38
leppie27-Aug-02 9:38 
GeneralRe: Quick Question Pin
Andy Smith27-Aug-02 9:55
Andy Smith27-Aug-02 9:55 
GeneralRe: Quick Question Pin
leppie27-Aug-02 11:30
leppie27-Aug-02 11:30 
GeneralRe: Quick Question Pin
Christian Graus27-Aug-02 12:06
protectorChristian Graus27-Aug-02 12:06 
GeneralThanks Pin
Alex Korchemniy27-Aug-02 14:58
Alex Korchemniy27-Aug-02 14:58 
GeneralCursor Blink Rate Pin
Nnamdi Onyeyiri27-Aug-02 8:52
Nnamdi Onyeyiri27-Aug-02 8:52 
GeneralDestructor problem Pin
leppie27-Aug-02 7:55
leppie27-Aug-02 7:55 
GeneralRe: Destructor problem Pin
Michael Mac27-Aug-02 8:15
Michael Mac27-Aug-02 8:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.