Microsoft KB Archive/172121: Difference between revisions
m (Text replacement - ">" to ">") |
m (Text replacement - """ to """) |
||
Line 51: | Line 51: | ||
== SUMMARY == | == SUMMARY == | ||
The documentation for the Microsoft Grid control (the Picture property description for the Grid control in the Help file) states that it is able to load a metafile into the Picture property. This is incorrect for the Microsoft Grid control, but valid for the controls listed under | The documentation for the Microsoft Grid control (the Picture property description for the Grid control in the Help file) states that it is able to load a metafile into the Picture property. This is incorrect for the Microsoft Grid control, but valid for the controls listed under "Applies To" >>reference?<< for the Picture Property. The Microsoft Grid control can only load bitmaps and icons into the Picture property. | ||
</div> | </div> | ||
Line 72: | Line 72: | ||
<li><p>In the Load event for Form1, place the following code:</p> | <li><p>In the Load event for Form1, place the following code:</p> | ||
<pre class="codesample"> Private Sub Form_Load() | <pre class="codesample"> Private Sub Form_Load() | ||
Grid1.Picture = LoadPicture( | Grid1.Picture = LoadPicture("C:\VB4\metafile\arrows\2DARROW1.WMF") | ||
End Sub | End Sub | ||
</pre></li> | </pre></li> |
Latest revision as of 11:05, 21 July 2020
Article ID: 172121
Article Last Modified on 6/29/2004
APPLIES TO
- Microsoft Visual Basic 5.0 Professional Edition
- Microsoft Visual Basic 6.0 Professional Edition
- Microsoft Visual Basic 5.0 Enterprise Edition
- Microsoft Visual Basic 6.0 Enterprise Edition
- Microsoft Visual Basic 4.0 Professional Edition
- Microsoft Visual Basic 4.0 Professional Edition
- Microsoft Visual Basic 4.0 16-bit Enterprise Edition
- Microsoft Visual Basic 4.0 32-Bit Enterprise Edition
This article was previously published under Q172121
SUMMARY
The documentation for the Microsoft Grid control (the Picture property description for the Grid control in the Help file) states that it is able to load a metafile into the Picture property. This is incorrect for the Microsoft Grid control, but valid for the controls listed under "Applies To" >>reference?<< for the Picture Property. The Microsoft Grid control can only load bitmaps and icons into the Picture property.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps To Reproduce the Problem
- Start a new project in Visual Basic. Form1 is created by default.
- Place a Microsoft Grid Control on to Form1.
In the Load event for Form1, place the following code:
Private Sub Form_Load() Grid1.Picture = LoadPicture("C:\VB4\metafile\arrows\2DARROW1.WMF") End Sub
- Run the project by pressing the F5 key. The following error message is received:
Additional query words: kbVBp400bug kbVBp500bug kbVBp600bug kbVBp kbdsd kbControl kbDSupport
Keywords: kbbug KB172121