TextBox array auto-select problem

  • Thread starter Thread starter marmot101
  • Start date Start date
M

marmot101

Hi, All,

I create an array of TextBox and add them to a windows form by program. It
works fine. However, whenever I open the form, the text in first TextBox is
always SELECTED, how can I stop this behavior?

Thanks for your help!
 
When you create the array, after you set the text, change the SelectedLength
property on the text box to 0.

Chris
 
Back
Top