Click here to Skip to main content
15,907,906 members
Home / Discussions / C#
   

C#

 
GeneralRe: Asyncronous Remoting... Pin
Heath Stewart18-Feb-04 4:40
protectorHeath Stewart18-Feb-04 4:40 
GeneralRe: Asyncronous Remoting... Pin
Blue_Aqua18-Feb-04 17:48
Blue_Aqua18-Feb-04 17:48 
GeneralRe: Asyncronous Remoting... Pin
Guillermo Rivero18-Feb-04 7:53
Guillermo Rivero18-Feb-04 7:53 
GeneralRe: Asyncronous Remoting... Pin
Blue_Aqua18-Feb-04 18:43
Blue_Aqua18-Feb-04 18:43 
GeneralMDI problems Pin
ASGill18-Feb-04 0:24
ASGill18-Feb-04 0:24 
GeneralRe: MDI problems Pin
Weiye Chen18-Feb-04 4:16
Weiye Chen18-Feb-04 4:16 
GeneralDoubleClikc Event of ComboBox Pin
Itanium17-Feb-04 23:40
Itanium17-Feb-04 23:40 
GeneralRe: DoubleClikc Event of ComboBox Pin
Heath Stewart18-Feb-04 4:38
protectorHeath Stewart18-Feb-04 4:38 
Almost all the controls in System.Windows.Forms encapsulate their Windows common controls equivalents. Not all of these controls support all the notification messages that raise events in .NET. The ComboBox, for instance, pops up and hides its scrolling popup window used for the drop down on WM_LBUTTONDOWN and is not double-click aware. If you want to make it so, you're going to have to extend the ComboBox controls in .NET, override WndProc, and handle many of these messages yourself. To handle messages like WM_LBUTTONDOWN though, you might have to use an IMessageFilter.

Anyway, you'll have to capture this message before it goes to the base class's WndProc method (which you should call base.WndProc(ref m) after your code) and start a timer. If the timer elapses, call SendMessage (which you'll also have to P/Invoke) with the original data that came with the WM_LBUTTONDOWN message. If the user clicks again before the timer elapses, then you've got your double-click event and should throw-out the WM_LBUTTONDOWN message (i.e., don't send it). The easiest way to raise this event is to just call base.OnDoubleClick, which will raise the DoubleClick event.

 

Microsoft MVP, Visual C#
My Articles
QuestionHow to work around screensaver?? Pin
mdundek17-Feb-04 22:06
mdundek17-Feb-04 22:06 
AnswerRe: How to work around screensaver?? Pin
Heath Stewart18-Feb-04 4:31
protectorHeath Stewart18-Feb-04 4:31 
GeneralRe: How to work around screensaver?? Pin
mdundek18-Feb-04 6:32
mdundek18-Feb-04 6:32 
GeneralSin graphic algorithm Pin
Anonymous17-Feb-04 20:09
Anonymous17-Feb-04 20:09 
GeneralRe: Sin graphic algorithm Pin
Colin Angus Mackay17-Feb-04 22:01
Colin Angus Mackay17-Feb-04 22:01 
GeneralRe: Sin graphic algorithm Pin
Werdna18-Feb-04 5:20
Werdna18-Feb-04 5:20 
Generalhigh precision event triggering in c# Pin
SIDDHARTH_JAIN17-Feb-04 19:50
SIDDHARTH_JAIN17-Feb-04 19:50 
GeneralRe: high precision event triggering in c# Pin
Member 26118818-Feb-04 2:54
Member 26118818-Feb-04 2:54 
GeneralRe: high precision event triggering in c# Pin
SIDDHARTH_JAIN18-Feb-04 11:36
SIDDHARTH_JAIN18-Feb-04 11:36 
GeneralRe: high precision event triggering in c# Pin
scadaguy18-Feb-04 4:20
scadaguy18-Feb-04 4:20 
QuestionWhat is the correspondence .Net Class? Pin
EastDragon17-Feb-04 19:47
EastDragon17-Feb-04 19:47 
AnswerRe: What is the correspondence .Net Class? Pin
Heath Stewart17-Feb-04 20:00
protectorHeath Stewart17-Feb-04 20:00 
GeneralC# scripts to validate zip codes & strings Pin
Reed Eichner17-Feb-04 17:56
Reed Eichner17-Feb-04 17:56 
GeneralRe: C# scripts to validate zip codes & strings Pin
John Kuhn17-Feb-04 19:44
John Kuhn17-Feb-04 19:44 
GeneralRe: C# scripts to validate zip codes & strings Pin
Reed Eichner17-Feb-04 19:57
Reed Eichner17-Feb-04 19:57 
GeneralRe: C# scripts to validate zip codes & strings Pin
Heath Stewart17-Feb-04 20:04
protectorHeath Stewart17-Feb-04 20:04 
GeneralRe: C# scripts to validate zip codes & strings Pin
John Kuhn17-Feb-04 20:09
John Kuhn17-Feb-04 20: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.