PRB: Problem Changing Control's Picture to (None) in VB 3.0 (108602)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 3.0
This article was previously published under Q108602 SYMPTOMS
You can attach a graphic to a form or picture control using the Picture
property in Visual Basic. By default, Visual Basic gives a value of
(none) for the Picture property in the Properties window. After you
attach a graphic to a form or picture control, the Picture property has
a value of (bitmap), (icon), or (metafile).
However, Visual Basic can prevent your attempts to detach the graphic.
Highlighting the (bitmap), (icon), or (metafile) value and pressing DEL
can fail to change the value to (none).
Please note that this reference to the DEL key refers to the DEL key on the
numeric keypad, not the DELETE key on the main keyboard.
NOTE: The three dots on the right of the Settings box for the Picture
property do not pop up a choice for (none). Visual Basic requires you
to use the DEL key to change the Picture property value to (none).
CAUSE
Visual Basic requires you to click the Picture property in the
Properties list immediately before highlighting the (bitmap), (icon),
or (metafile) value for deletion. Visual Basic requires that click
even if the Picture property has the focus from a previous operation.
WORKAROUND
To work around this behavior, click the Picture property in the
Properties list before highlighting the (bitmap), (icon), or (metafile)
value. Or, change the focus to any other property on the Properties
window, then reselect the Picture property. The DEL key then
correctly deletes the (bitmap), (icon), or (metafile) value and changes
the value to (none). The graphic correctly disappears from the form or
picture control.
STATUS
This behavior is under review and will be considered for correction in a
future release.
REFERENCES
"Microsoft Visual Basic Version 3.0: Programmer's Guide", Page 324.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | kbprb KB108602 |
---|
|