Behaviour of TextBox

  • Thread starter Thread starter Syed Zeeshan Haider
  • Start date Start date
S

Syed Zeeshan Haider

Hello Everybody,
I have VB6 EE on WinXP SP2.

I have a little confusion about the behavior of TextBox. There is a
procedure which selects all contents of a TextBox when it gets focus. When I
right-click the same TextBox, the default context menu (for TextBox) appears
and its entire contents are selected. As its entire contents are selected, I
hope that "Copy" option in the context menu is *enabled*. But, as a matter
of fact, it is always disabled as if no text has been selected. To make it
available, I have to right-click again.

From this I guess that for a TextBox, GotFocus event is triggered *after*
Click event. If I am right then how can I tackle this problem? Should I
change GotFocus with Click?

Thank you,
 
Back
Top