Click here to Skip to main content
15,900,110 members
Home / Discussions / C#
   

C#

 
GeneralVery Urgent Please -- Overloading ++ operator doesn't function as intended. Pin
Member 112523619-Jul-04 17:12
Member 112523619-Jul-04 17:12 
GeneralRe: Very Urgent Please -- Overloading ++ operator doesn't function as intended. Pin
Javier Lozano19-Jul-04 18:06
Javier Lozano19-Jul-04 18:06 
GeneralRe: Very Urgent Please -- Overloading ++ operator doesn't function as intended. Pin
Heath Stewart20-Jul-04 10:04
protectorHeath Stewart20-Jul-04 10:04 
GeneralBinary Data over network Pin
joelwwk19-Jul-04 17:11
joelwwk19-Jul-04 17:11 
GeneralRe: Binary Data over network Pin
Heath Stewart20-Jul-04 10:19
protectorHeath Stewart20-Jul-04 10:19 
GeneralMissing Authorization http header Pin
darma_m19-Jul-04 15:37
darma_m19-Jul-04 15:37 
GeneralResizing help Pin
Wjousts19-Jul-04 15:18
Wjousts19-Jul-04 15:18 
GeneralRe: Resizing help Pin
Heath Stewart20-Jul-04 10:25
protectorHeath Stewart20-Jul-04 10:25 
The MouseDown and MouseUp events are only fired with the client area (the actual control area). They are not fired for the window frame. In order to handle these "events" (notification messages), override WndProc in your Form like so:
bool mouseDown;
const int WM_NCMBUTTONDOWN = 0x00a7;
const int WM_NCMBUTTONUP = 0x00a8;
protected override void WndProc(ref Message m)
{
  if (m.Msg == WM_NCMBUTTONDOWN) mouseDown = true;
  else if (m.Msg == WM_NCMBUTTONUP) mouseDown = false;
  base.WndProc(ref m);
}
Now your state variable (mouseDown) should be assigned correctly.

 

Microsoft MVP, Visual C#
My Articles
Questionhow to get the system imagelist Pin
noosword19-Jul-04 14:46
noosword19-Jul-04 14:46 
AnswerRe: how to get the system imagelist Pin
Heath Stewart20-Jul-04 4:29
protectorHeath Stewart20-Jul-04 4:29 
GeneralRe: how to get the system imagelist Pin
noosword20-Jul-04 19:02
noosword20-Jul-04 19:02 
GeneralRe: how to get the system imagelist Pin
Heath Stewart21-Jul-04 3:59
protectorHeath Stewart21-Jul-04 3:59 
GeneralCapturing the desktop Pin
Salman Taseer`19-Jul-04 13:15
Salman Taseer`19-Jul-04 13:15 
GeneralRe: Capturing the desktop Pin
Nick Parker19-Jul-04 17:16
protectorNick Parker19-Jul-04 17:16 
GeneralTag name of the root element of the XML data file Pin
Flack19-Jul-04 13:04
Flack19-Jul-04 13:04 
GeneralRe: Tag name of the root element of the XML data file Pin
Dave Kreskowiak19-Jul-04 15:32
mveDave Kreskowiak19-Jul-04 15:32 
GeneralRe: Tag name of the root element of the XML data file Pin
Flack19-Jul-04 16:05
Flack19-Jul-04 16:05 
GeneralRe: Tag name of the root element of the XML data file Pin
Nick Parker19-Jul-04 17:11
protectorNick Parker19-Jul-04 17:11 
GeneralRe: Tag name of the root element of the XML data file Pin
Heath Stewart20-Jul-04 4:01
protectorHeath Stewart20-Jul-04 4:01 
GeneralRe: Tag name of the root element of the XML data file Pin
Heath Stewart20-Jul-04 4:04
protectorHeath Stewart20-Jul-04 4:04 
GeneralAccessing Parallel Port Pin
ahmedadelfarid19-Jul-04 11:32
ahmedadelfarid19-Jul-04 11:32 
GeneralRe: Accessing Parallel Port Pin
Dave Kreskowiak19-Jul-04 15:31
mveDave Kreskowiak19-Jul-04 15:31 
GeneralRe: Accessing Parallel Port Pin
eggie519-Jul-04 18:23
eggie519-Jul-04 18:23 
Generaltrap state changes (standbye, hibernate, etc) Pin
vista2719-Jul-04 11:31
vista2719-Jul-04 11:31 
GeneralRe: trap state changes (standbye, hibernate, etc) Pin
Heath Stewart19-Jul-04 11:45
protectorHeath Stewart19-Jul-04 11:45 

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.