VB Migration Partner’s support library hides most of the differences between the VB6 and the .NET versions of the Command control, but not all of them. In most cases the remaining differences should have no impact on migrated programs. Here’s their complete list:
- If the user moves the input focus to the Command control, VB6 receives the GotFocus event, whereas VB.NET receives the GotFocus event followed by the KeyUp event.
- If the user presses the spacebar when the Command control has the focus, the event sequence under VB6 is KeyDown, KeyPress, KeyUp, Click. Under the same circumstances, the event sequence under VB.NET is KeyDown, KeyPress, Click, KeyUp.
Notice that these differences are in common to both the built-in Command control and the SSCommand control included in Infragistics’s ActiveThreed Plus library.