M
Mike
I just thought I would post this to document it even though I've found a
workaround:
I was creating 2 forms like this:
dim f1 as new Form1
dim f2 as new Form2
f1.ShowDialog
f1.Close
f2.textbox.selectionlength = 1
f2.ShowDialog
f2.Close
Form2 has a textbox on it with 1 letter in it. For some reason, the text
was not being highlighted in this scenario. If I commented out showing
Form1, that fixed it.
When I removed the "new" in the dim statement for Form2 and created Form2
after Form1 was closed, it started working.
Weird.
workaround:
I was creating 2 forms like this:
dim f1 as new Form1
dim f2 as new Form2
f1.ShowDialog
f1.Close
f2.textbox.selectionlength = 1
f2.ShowDialog
f2.Close
Form2 has a textbox on it with 1 letter in it. For some reason, the text
was not being highlighted in this scenario. If I commented out showing
Form1, that fixed it.
When I removed the "new" in the dim statement for Form2 and created Form2
after Form1 was closed, it started working.
Weird.