Click here to Skip to main content
15,913,758 members
Home / Discussions / C#
   

C#

 
GeneralRe: Forms Show ShowDialog ImageEditing Pin
seanmayhew12-May-04 9:59
seanmayhew12-May-04 9:59 
GeneralRe: Forms Show ShowDialog ImageEditing Pin
Heath Stewart12-May-04 10:02
protectorHeath Stewart12-May-04 10:02 
GeneralWeb services Pin
yuke12-May-04 6:45
yuke12-May-04 6:45 
GeneralRe: Web services Pin
Mazdak12-May-04 8:57
Mazdak12-May-04 8:57 
GeneralRe: Web services Pin
yuke12-May-04 21:35
yuke12-May-04 21:35 
GeneralSynfusion Pin
DotNetNew12-May-04 5:43
DotNetNew12-May-04 5:43 
Generalknowing when a form move is complete Pin
HappyPaws12-May-04 5:23
HappyPaws12-May-04 5:23 
GeneralRe: knowing when a form move is complete Pin
Heath Stewart12-May-04 5:33
protectorHeath Stewart12-May-04 5:33 
Why not just handle the LocationChanged event for your forms. For a Form, the Location property returns the screen coordinates of the form. Just keep track of the previous coordinates and if you don't want the user to move to a quadrant, move the form back to it's original location. There are a few other ways to implement this as well without handling the mouse events.

As far as moving the form, you really should override WndProc in your child classes (or use an IMessageFilter implementation for global control) and handle the WM_NCMOUSEMOVE and other non-client area messages that apply to the non-client portion of the Form (i.e., the window frame).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: knowing when a form move is complete Pin
HappyPaws12-May-04 8:21
HappyPaws12-May-04 8:21 
GeneralRe: knowing when a form move is complete Pin
Heath Stewart12-May-04 9:22
protectorHeath Stewart12-May-04 9:22 
GeneralChecking if control moved Pin
lustuyck12-May-04 4:25
lustuyck12-May-04 4:25 
GeneralRe: Checking if control moved Pin
Heath Stewart12-May-04 4:46
protectorHeath Stewart12-May-04 4:46 
GeneralSize of Folder Pin
Meysam Mahfouzi12-May-04 4:19
Meysam Mahfouzi12-May-04 4:19 
GeneralRe: Size of Folder Pin
Dave Kreskowiak12-May-04 4:21
mveDave Kreskowiak12-May-04 4:21 
GeneralMessage Removed Pin
12-May-04 4:27
wibblewibblewibble12-May-04 4:27 
GeneralRe: Size of Folder Pin
Meysam Mahfouzi12-May-04 17:02
Meysam Mahfouzi12-May-04 17:02 
GeneralRe: help on wmi and registry Pin
Heath Stewart12-May-04 4:01
protectorHeath Stewart12-May-04 4:01 
QuestionHow to invoke the compress() from Zlib.dll Pin
fu012-May-04 3:00
fu012-May-04 3:00 
AnswerRe: How to invoke the compress() from Zlib.dll Pin
Heath Stewart12-May-04 3:09
protectorHeath Stewart12-May-04 3:09 
Generalcreating query builder Pin
karteek12-May-04 2:28
karteek12-May-04 2:28 
GeneralRe: creating query builder Pin
Paul Watson12-May-04 4:47
sitebuilderPaul Watson12-May-04 4:47 
GeneralGet a reference to the Form from a IComponent on the ComponentTray Pin
Daniel Zaharia12-May-04 1:13
Daniel Zaharia12-May-04 1:13 
GeneralRe: Get a reference to the Form from a IComponent on the ComponentTray Pin
Heath Stewart12-May-04 3:19
protectorHeath Stewart12-May-04 3:19 
GeneralRe: Get a reference to the Form from a IComponent on the ComponentTray Pin
Daniel Zaharia12-May-04 3:30
Daniel Zaharia12-May-04 3:30 
GeneralRe: Get a reference to the Form from a IComponent on the ComponentTray Pin
Heath Stewart12-May-04 4:04
protectorHeath Stewart12-May-04 4:04 

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.