PRB: ScrollBars Appear Incorrectly in Run-Mode

ID: Q180391


The information in this article applies to:
  • Microsoft Windows CE Toolkit for Visual Basic 6.0
  • Microsoft Windows CE Toolkit for Visual Basic 5.0


SYMPTOMS

When you place a horizontal or vertical ScrollBar on a form and make it small, the ScrollBar appears blank or without arrows, depending on the size of the control.


STATUS

This behavior is by design.


MORE INFORMATION

This behavior occurs because of the way that Windows CE handles the painting of the control.

Steps to Reproduce Behavior

  1. Create a new Windows CE (HPC) Project in Visual Basic. Form1 is created by default.


  2. Add a Vertical ScrollBar to Form1.


  3. Add the following code to Form1:

    
          Private Sub Form_Load()
             VScroll1.Height = 450
          End Sub 


  4. Press the F5 key to run the project, and note that no arrows appear in the ScrollBar.


  5. Change the code above to read:
    
         Private Sub Form_Load()
               VScroll1.Height = 250
         End Sub 


  6. Press the F5 key to run the project, and note that the ScrollBar is longer drawn on the form.


Additional query words: wince vbce vbce5 vbce6

Keywords : kbToolkit kbVBp500 kbVBp600 kbWinCE100 kbGrpVB
Version : WINDOWS:
Platform : WINDOWS
Issue type : kbprb


Last Reviewed: October 18, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.