Click here to Skip to main content
16,004,977 members
Home / Discussions / C#
   

C#

 
AnswerRe: Find a string in another string!? Pin
David Wengier7-May-02 12:01
David Wengier7-May-02 12:01 
GeneralRe: Find a string in another string!? Pin
Rickard Andersson207-May-02 20:32
Rickard Andersson207-May-02 20:32 
GeneralRepost: ICodeCompiler Pin
Orion Buttigieg7-May-02 5:56
Orion Buttigieg7-May-02 5:56 
GeneralRe: Repost: ICodeCompiler Pin
Orion Buttigieg7-May-02 12:57
Orion Buttigieg7-May-02 12:57 
GeneralRe: Repost: ICodeCompiler Pin
James T. Johnson7-May-02 14:44
James T. Johnson7-May-02 14:44 
GeneralRe: Repost: ICodeCompiler Pin
Orion Buttigieg8-May-02 5:38
Orion Buttigieg8-May-02 5:38 
GeneralFocus problems... Pin
Joshua Guy7-May-02 5:25
Joshua Guy7-May-02 5:25 
GeneralRe: Focus problems... Pin
James T. Johnson7-May-02 14:59
James T. Johnson7-May-02 14:59 
Joshua Guy wrote:
BTW, I'm betting James knows.

Off the top of my head...

in Form_Load
Application.AddMessageFilter(myComponent as IMessageFilter);

in your component

public class MyComponent : ......, IMessageFilter
{
  ......
 
  bool IMessageFilter.PreFilterMessage(ref Message m)
  {
    if( m.Msg == 0x020A )
    {
      m.HWnd = this.Handle;  // Just in case it checks the HWnd :)
      WndProc(ref m); // Let it dispatch the mouse wheel events to your control
      return true;
    }
    
    return false;
  }
}
Hopfully that'll work, I haven't tested it Smile | :)

James

Simplicity Rules!
GeneralSearch for files Pin
Rickard Andersson207-May-02 1:37
Rickard Andersson207-May-02 1:37 
GeneralRe: Search for files Pin
James T. Johnson7-May-02 2:51
James T. Johnson7-May-02 2:51 
GeneralRe: Search for files Pin
Rickard Andersson207-May-02 2:58
Rickard Andersson207-May-02 2:58 
GeneralRe: Search for files Pin
Daniel Turini8-May-02 8:12
Daniel Turini8-May-02 8:12 
GeneralRaising/Invoking Events - sending keystrokes/mouseclicks Pin
7-May-02 1:14
suss7-May-02 1:14 
GeneralRe: Raising/Invoking Events - sending keystrokes/mouseclicks Pin
James T. Johnson7-May-02 2:52
James T. Johnson7-May-02 2:52 
GeneralRe: Raising/Invoking Events - sending keystrokes/mouseclicks Pin
7-May-02 5:56
suss7-May-02 5:56 
GeneralRe: Raising/Invoking Events - sending keystrokes/mouseclicks Pin
Daniel Turini7-May-02 22:57
Daniel Turini7-May-02 22:57 
GeneralRe: Raising/Invoking Events - sending keystrokes/mouseclicks Pin
9-May-02 8:36
suss9-May-02 8:36 
GeneralHungarian notation Pin
Oyvind Bratland7-May-02 0:31
Oyvind Bratland7-May-02 0:31 
GeneralRe: Hungarian notation Pin
James T. Johnson7-May-02 0:46
James T. Johnson7-May-02 0:46 
GeneralRe: Hungarian notation Pin
Christian Graus7-May-02 12:20
protectorChristian Graus7-May-02 12:20 
GeneralRe: Hungarian notation Pin
James T. Johnson8-May-02 9:55
James T. Johnson8-May-02 9:55 
GeneralRe: Hungarian notation Pin
Christian Graus8-May-02 10:58
protectorChristian Graus8-May-02 10:58 
GeneralRe: Hungarian notation Pin
Tom Archer7-May-02 12:20
Tom Archer7-May-02 12:20 
GeneralRe: Hungarian notation Pin
Ludwig Stuyck8-May-02 4:22
Ludwig Stuyck8-May-02 4:22 
GeneralRadioButton help Pin
6-May-02 16:26
suss6-May-02 16:26 

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.