2
Answers

Mthod Overiding on textbox

tuortoam

tuortoam

14y
1.8k
1
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)