S
sandy
7. Form1 has three buttons cmdOK, cmdCancel, and cmdTest.
The form needs to have the following characteristics:
When the form is displayed it has to be centered in the
middle of the screen.
When the user presses the 'Enter' key the code for the
event procedure cmdOK_Click needs to be executed.
When the user presses the 'Esc' (escape) key, the code
for the event procedure cmdCancel_Click needs to be
executed.
How would i implement this behavior:
The form needs to have the following characteristics:
When the form is displayed it has to be centered in the
middle of the screen.
When the user presses the 'Enter' key the code for the
event procedure cmdOK_Click needs to be executed.
When the user presses the 'Esc' (escape) key, the code
for the event procedure cmdCancel_Click needs to be
executed.
How would i implement this behavior: