BUG: CommonDialog FilterIndex Always Returns Default Filter IndexID: Q232654
|
The FilterIndex property of the CommonDialog control that ships with the Microsoft Windows CE Toolkit for Visual Basic 6.0 (VBCE6) will always return the index for the first defined filter despite being changed by the user at run time.
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.
The following code will behave differently between VBCE and Visual Basic 6.0.
Private Sub Command1_Click()
CommonDialog1.Filter = "Text (*.txt)|*.txt|Pictures (*.bmp)|*.bmp"
CommonDialog1.FilterIndex = 1
CommonDialog1.ShowOpen
MsgBox "FilterIndex: " & CommonDialog1.FilterIndex
End Sub
Visual Basic 6.0 Online Help
Windows CE Toolkit for Visual Basic 6.0 Online Help
Additional query words: vbce vbce6 wince
Keywords : kbToolkit kbVBp600bug kbWinCE kbGrpVB
Version : WINDOWS:1.0
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: July 16, 1999