TabPage mouse event handler not happening

Christ Kennedy 41 Reputation points
2022-10-16T21:32:56.343+00:00

I'm writing a TabPage_MyOwn class that inherits MS TabPage
and the MouseMove, MouseUp and MouseDown event handlers are not happening.

    public class ck_TabPage : TabPage   
        {  
            Point ptZer0 = new Point(0, 0);  
  
            public ck_TabPage()  
            {  
                tmrGrab_Move.Interval = 100;  
                tmrGrab_Move.Tick += TmrGrab_Move_Tick;  
  
                MouseMove += Ck_TabPage_MouseMove;  
                MouseDown += Ck_TabPage_MouseDown;  
                MouseUp += Ck_TabPage_MouseUp;  
  
            }  
              
            private void Ck_TabPage_MouseUp(object sender, MouseEventArgs e)  
            {  
                tmrGrab_Intent.Enabled = false;  
                Grab = false;  
            }  
  
            private void Ck_TabPage_MouseDown(object sender, MouseEventArgs e)  
            {  
                tmrGrab_Intent.Enabled = e.Y < 15;  
            }  
  
            private void Ck_TabPage_MouseMove(object sender, MouseEventArgs e)  
            {  
                tmrGrab_Intent.Enabled = false;  
                ptGrab = new Point(e.X, e.Y);  
            }  
}  
  • I have several of these, they're in their TabControllers doing what they do. But none of these event handlers are happening.
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,858 questions
{count} votes