D
daniel
Hi all,
I have a simple scenario:
I have a UserControl (control1) which hosts a TextBox. When I call
"control1.Select()", I expect to get the focus in the hosted TextBox. But it
doesn't work - the only thing I can see, is that the UserControl gets a
Enter-even.
If I host a Textbox in a Panel and then select the panel, everything works
as expected.
What do I have to do, so that my UserControl shows the correct behaviour?
Anybody has a hint?
Thanks in advance, I'm desperate :-(
Daniel
PS: I'm using .net framework 2.0, but I guess we have the same behaviour in
..net 1.1
I have a simple scenario:
I have a UserControl (control1) which hosts a TextBox. When I call
"control1.Select()", I expect to get the focus in the hosted TextBox. But it
doesn't work - the only thing I can see, is that the UserControl gets a
Enter-even.
If I host a Textbox in a Panel and then select the panel, everything works
as expected.
What do I have to do, so that my UserControl shows the correct behaviour?
Anybody has a hint?
Thanks in advance, I'm desperate :-(
Daniel
PS: I'm using .net framework 2.0, but I guess we have the same behaviour in
..net 1.1