G
Guest
I inherited a richtextbox class and tried to add the double click even
handler. Unfortunatly, when I check the properties of rtbText, it doesn't
contain a double click event handler. Any ideas on what I did wrong or how i
can add a double click event handler to a richtextbox?
//I declared rtbText as my custom richtextbox
rtbText = new DblClickRich()
//Custom Richtextbox class trying to add double click event handler
public class DblClickRich : RichTextBox {
public DblClickRich() : base() {
SetStyle(ControlStyles.StandardClick, true);
SetStyle(ControlStyles.StandardDoubleClick, true);
}
}
handler. Unfortunatly, when I check the properties of rtbText, it doesn't
contain a double click event handler. Any ideas on what I did wrong or how i
can add a double click event handler to a richtextbox?
//I declared rtbText as my custom richtextbox
rtbText = new DblClickRich()
//Custom Richtextbox class trying to add double click event handler
public class DblClickRich : RichTextBox {
public DblClickRich() : base() {
SetStyle(ControlStyles.StandardClick, true);
SetStyle(ControlStyles.StandardDoubleClick, true);
}
}