G
Guest
I am trying to "highlight" text in a TextBox control during the "Enter" event as follows
private void txtPriorPlantTotal_Enter(object sender, System.EventArgs e
this.txtPriorPlantTotal.SelectionStart = 0
this.txtPriorPlantTotal.SelectionLength = this.txtPriorPlantTotal.Text.Length
However, when I run the program and click on the textbox none of the text is physicaly highlighted. SelectedText shows I have selected all the text in the textbox but nothing is highlighted. I tried a few other textboxes just to make sure it wasn't the control
What gives
C# with framework 1.1
private void txtPriorPlantTotal_Enter(object sender, System.EventArgs e
this.txtPriorPlantTotal.SelectionStart = 0
this.txtPriorPlantTotal.SelectionLength = this.txtPriorPlantTotal.Text.Length
However, when I run the program and click on the textbox none of the text is physicaly highlighted. SelectedText shows I have selected all the text in the textbox but nothing is highlighted. I tried a few other textboxes just to make sure it wasn't the control
What gives
C# with framework 1.1