tuortoam

tuortoam

  • NA
  • 12
  • 0

Mthod Overiding on textbox

Aug 24 2010 11:49 AM
Can someone explain to me why this doesn't work?

My textbox still lets me click in it!!!

Thanks,
-Ant
---------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace overridetest
{
    class adtextbox : TextBox
    {

        protected override void OnMouseClick(MouseEventArgs e)
        {
            // base.OnMouseClick(e);
        }
    }
}

Answers (2)