PRB: Problem Changing Control's Picture to (None) in VB 3.0Last reviewed: September 15, 1995Article ID: Q108602 |
The information in this article applies to:
SYMPTOMSYou 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).
CAUSEVisual 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.
WORKAROUNDTo 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.
STATUSThis behavior is under review and will be considered for correction in a future release.
MORE INFORMATION
Steps to Reproduce the BehaviorThe following steps set the Picture property to (bitmap), (icon), or (metafile):
REFERENCES
|
Additional reference words: 3.00 bitmap bitmaps .BMP .WMF .ICO .DIB
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |