Click here to Skip to main content
15,914,013 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem using Dll in .net Pin
Peter Nirschl27-Mar-04 0:57
Peter Nirschl27-Mar-04 0:57 
GeneralRe: Problem using Dll in .net Pin
Nick Parker27-Mar-04 4:40
protectorNick Parker27-Mar-04 4:40 
GeneralRe: Problem using Dll in .net Pin
Heath Stewart27-Mar-04 5:35
protectorHeath Stewart27-Mar-04 5:35 
GeneralRe: Problem using Dll in .net Pin
Peter Nirschl27-Mar-04 6:20
Peter Nirschl27-Mar-04 6:20 
Generalmove form Pin
Rob Tomson26-Mar-04 20:33
Rob Tomson26-Mar-04 20:33 
GeneralRe: move form Pin
Heath Stewart26-Mar-04 21:10
protectorHeath Stewart26-Mar-04 21:10 
GeneralRe: move form Pin
Rob Tomson26-Mar-04 21:58
Rob Tomson26-Mar-04 21:58 
GeneralRe: move form Pin
Heath Stewart26-Mar-04 22:32
protectorHeath Stewart26-Mar-04 22:32 
I see. The form is still trying to go where you put it but when your code executes it tries to put it back to where you want it to be. You definitely don't want to stop painting, but you could try to override OnMouseMove and do NOT call base.OnMouseMove if you've reached your MdiParent's extents. This might work, so long as it cancels the underlying WM_MOUSEMOVE notification message handler. I highly doubt it since the MouseMove event is fired in response to the mouse moving. In this case, try overriding the child form's WndProc and before calling base.WndProc, handle the WM_MOUSEMOVE notification message (0x0200) and just return without doing anything if you've reached your MdiParent's extents.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: move form Pin
Rob Tomson26-Mar-04 23:09
Rob Tomson26-Mar-04 23:09 
GeneralRe: move form Pin
Heath Stewart27-Mar-04 5:23
protectorHeath Stewart27-Mar-04 5:23 
GeneralRe: move form Pin
Rob Tomson28-Mar-04 20:07
Rob Tomson28-Mar-04 20:07 
GeneralRe: move form Pin
Heath Stewart29-Mar-04 3:13
protectorHeath Stewart29-Mar-04 3:13 
GeneralAdo.Net using c# Pin
naresh_pandey1326-Mar-04 19:30
naresh_pandey1326-Mar-04 19:30 
GeneralRe: Ado.Net using c# Pin
Heath Stewart26-Mar-04 20:15
protectorHeath Stewart26-Mar-04 20:15 
GeneralRe: Ado.Net using c# Pin
naresh_pandey1326-Mar-04 21:23
naresh_pandey1326-Mar-04 21:23 
GeneralRe: Ado.Net using c# Pin
Jiten_Soni30-Mar-04 18:00
Jiten_Soni30-Mar-04 18:00 
GeneralRe: Ado.Net using c# Pin
Heath Stewart31-Mar-04 3:04
protectorHeath Stewart31-Mar-04 3:04 
Generalan SMTP problem Pin
Liang Yitao26-Mar-04 19:07
Liang Yitao26-Mar-04 19:07 
GeneralRe: an SMTP problem Pin
Heath Stewart26-Mar-04 20:03
protectorHeath Stewart26-Mar-04 20:03 
GeneralOlap and XML/a Pin
naresh_pandey1326-Mar-04 17:08
naresh_pandey1326-Mar-04 17:08 
GeneralRe: Olap and XML/a Pin
Heath Stewart26-Mar-04 18:01
protectorHeath Stewart26-Mar-04 18:01 
GeneralShow/Hide form using remoting Pin
johnstacey26-Mar-04 13:07
johnstacey26-Mar-04 13:07 
GeneralRe: Show/Hide form using remoting Pin
Heath Stewart26-Mar-04 18:00
protectorHeath Stewart26-Mar-04 18:00 
GeneralRe: Show/Hide form using remoting Pin
johnstacey29-Mar-04 10:52
johnstacey29-Mar-04 10:52 
GeneralRe: Show/Hide form using remoting Pin
Heath Stewart29-Mar-04 17:09
protectorHeath Stewart29-Mar-04 17:09 

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.