ID Number: Q74982
1.00
WINDOWS
Summary:
If an option button containing an Unload statement in its Click event
procedure is selected using the keyboard (an access key, the cursor
keys, or the TAB key), the application terminates with a Windows
Unrecoverable Application Error (UAE). Using the mouse to select
the option button causes the Unload statement to execute correctly and
does not generate a UAE.
Microsoft has confirmed this to be a problem in Microsoft Visual Basic
programming system version 1.0 for Windows. We are researching this
problem and will post new information here as it becomes available.
More Information:
Steps to Reproduce Problem
--------------------------
1. Run Visual Basic or choose New Project from the File menu (ALT, F,
N). Form1 will be created by default.
2. Place any control on Form1.
3. Place an option button (Option1) on Form1.
4. Assign an access key to Option1 by entering "&UAE" (without the
quotation marks) for the Caption property of Option1. This will
cause the letter U to become the access key for Option1.
5. Add the following code to the Option1_Click event procedure:
Sub Option1_Click ()
Unload Form1
End Sub
6. Run the program (F5).
7. Use the access key (ALT+U), the cursor keys, or the TAB key to
select the option button. When the option button is selected in
this manner, a UAE will be generated.
When you select the option button with the mouse, no UAE will occur.
The UAE only occurs when the Click event is caused from the keyboard.
Additional reference words: 1.00