Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
GeneralRe: Click Sound Pin
Heath Stewart29-Mar-04 5:28
protectorHeath Stewart29-Mar-04 5:28 
GeneralTutor application Pin
Saleh Alshadheli29-Mar-04 5:00
Saleh Alshadheli29-Mar-04 5:00 
GeneralRe: Tutor application Pin
Heath Stewart29-Mar-04 5:24
protectorHeath Stewart29-Mar-04 5:24 
GeneralMoveable Controls - Form Style Pin
Tristan Rhodes29-Mar-04 4:58
Tristan Rhodes29-Mar-04 4:58 
GeneralRe: Moveable Controls - Form Style Pin
Heath Stewart29-Mar-04 5:22
protectorHeath Stewart29-Mar-04 5:22 
GeneralNever Mind Pin
Tristan Rhodes29-Mar-04 6:25
Tristan Rhodes29-Mar-04 6:25 
GeneralHalf way there Pin
Tristan Rhodes29-Mar-04 6:41
Tristan Rhodes29-Mar-04 6:41 
GeneralRe: Half way there Pin
Heath Stewart29-Mar-04 8:01
protectorHeath Stewart29-Mar-04 8:01 
See the Capture property. It won't stop the mouse from going outside the bounds of the container, but you can always stop the control from moving further through various means. I'm sure stopping the mouse is possible and, IIRC, have seen it done but I'm really not sure how and am sure it requires a lot of low-level notification message handling, perhaps even app or sys hooks.

You could, through quite a bit of work most likely, detect when the mouse is over a border (within a certain threshold) of a control and change the mouse cursor appropriately. The Mouse* events could be handled the same way as I mentioned in my previous post, only you would change the Size property (remember, you must create a new Size object since its a value type, or just change the corresponding properties of the control).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Half way there Pin
Tristan Rhodes29-Mar-04 8:15
Tristan Rhodes29-Mar-04 8:15 
GeneralRe: Half way there Pin
Heath Stewart29-Mar-04 8:35
protectorHeath Stewart29-Mar-04 8:35 
GeneralCursor Clipping Pin
Tristan Rhodes29-Mar-04 8:38
Tristan Rhodes29-Mar-04 8:38 
GeneralRe: Cursor Clipping Pin
Heath Stewart29-Mar-04 8:44
protectorHeath Stewart29-Mar-04 8:44 
GeneralRe: Cursor Clipping Pin
Tristan Rhodes29-Mar-04 8:57
Tristan Rhodes29-Mar-04 8:57 
GeneralRe: Cursor Clipping Pin
Heath Stewart29-Mar-04 9:13
protectorHeath Stewart29-Mar-04 9:13 
GeneralRe: Cursor Clipping Pin
Tristan Rhodes29-Mar-04 11:05
Tristan Rhodes29-Mar-04 11:05 
GeneralEvents Pin
Demian Panello29-Mar-04 4:40
Demian Panello29-Mar-04 4:40 
GeneralRe: Events Pin
Colin Angus Mackay29-Mar-04 5:11
Colin Angus Mackay29-Mar-04 5:11 
GeneralRe: Events Pin
Colin Angus Mackay29-Mar-04 5:13
Colin Angus Mackay29-Mar-04 5:13 
GeneralRe: Events Pin
Heath Stewart29-Mar-04 5:19
protectorHeath Stewart29-Mar-04 5:19 
GeneralSerializing /DeSerializing a class by itself Pin
MANJU_JOHN29-Mar-04 4:32
sussMANJU_JOHN29-Mar-04 4:32 
GeneralRe: Serializing /DeSerializing a class by itself Pin
Heath Stewart29-Mar-04 5:18
protectorHeath Stewart29-Mar-04 5:18 
GeneralCustom textbox with OnPaintBackground Pin
Stephen Birdsall29-Mar-04 3:59
Stephen Birdsall29-Mar-04 3:59 
GeneraltabPages Pin
bertcox29-Mar-04 2:50
bertcox29-Mar-04 2:50 
GeneralRe: tabPages Pin
Dave Kreskowiak29-Mar-04 4:09
mveDave Kreskowiak29-Mar-04 4:09 
GeneralRe: tabPages Pin
bertcox29-Mar-04 4:13
bertcox29-Mar-04 4:13 

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.