471,348 Members | 1,325 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

Different behaviour in DOtNet 1.1 and 2.0

The following code behaves differently since when I migrated to VS2005.

MyForm contains MyTextBox:

MyForm f = new MyForm();
f.MyTextBox.Text = "Mickey";
f.Show();

In 2.0, when the form appears, "Mickey" shows up "selected".

I also tried to add one more line of code:
MyForm f = new MyForm();
f.MyTextBox.Text = "Mickey";
f.Show();
f.MyTextBox.SelectionLenght = 0;

But this does not help.

Does anybody know what's going on?

Thanks,
Fabio
Jan 21 '06 #1
0 804

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Hendrik Schober | last post: by
3 posts views Thread by asanford | last post: by
11 posts views Thread by Jovo Mirkovic | last post: by
6 posts views Thread by Mikus Sleiners | last post: by
1 post views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.