VB.net overrides Textbox.GotFocus event
Posted on 2001-08-24
in VB.net Windows Forms:
i have 2 textboxes:
Text1 and Text2
how do i write codes to overrides the base class TextBox's GotFocus event?
i want to write a line like this:
this.SelStart = 0
this.SelLength = len(this.Text)
this.SelectAll() <- new .net function
so that every textbox will automatically highlight its text while got focus.