Microsoft KB Archive/253677: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - """ to """)
 
Line 68: Line 68:
<pre class="codesample">Private Sub Form_Click()
<pre class="codesample">Private Sub Form_Click()
     Dim i as Integer
     Dim i as Integer
     ImageList1.Add &quot;\windows\pyramid.bmp&quot;
     ImageList1.Add "\windows\pyramid.bmp"
     For i = 1 To 100
     For i = 1 To 100
         ImageList1.Replace 0, &quot;\windows\tiles.bmp&quot;
         ImageList1.Replace 0, "\windows\tiles.bmp"
     Next i
     Next i
End Sub
End Sub

Latest revision as of 13:52, 21 July 2020

Knowledge Base


Article ID: 253677

Article Last Modified on 8/19/2005



APPLIES TO

  • Microsoft Windows CE Toolkit for Visual Basic 6.0



This article was previously published under Q253677

SYMPTOMS

When using the Replace method of the ImageList control, a Windows CE Toolkit for Visual Basic (VBCE) application may unexpectedly terminate. No errors are raised when the termination occurs. This problem only occurs when the application is run on the remote device.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

This behavior only occurs in the Windows CE Platform.

Steps to Reproduce Behavior

  1. Create a new Windows CE Project in Visual Basic. Form1 is created by default.
  2. From the Project menu, choose Components, and then add the Microsoft CE ImageList Control 6.0 to the project.
  3. Add an ImageList control to Form1.
  4. Add the following code behind Form1:

    Private Sub Form_Click()
        Dim i as Integer
        ImageList1.Add "\windows\pyramid.bmp"
        For i = 1 To 100
            ImageList1.Replace 0, "\windows\tiles.bmp"
        Next i
    End Sub
                        
  5. Press the F5 key to run the program.
  6. Click on Form1. Notice that Form1 disappears.



Additional query words: wince vbce vbce6

Keywords: kbbug kbtoolkit kbpending KB253677