BUG: GetDayBold Event Not Working as Expected with MonthView Control
ID: Q229063
|
The information in this article applies to:
-
Microsoft Visual Basic Learning, Professional, and Enterprise Editions for Windows, version 6.0
SYMPTOMS
When using the GetDayBold event with the MonthView control, the wrong days are shown in bold format.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
MORE INFORMATIONSteps to Reproduce Behavior
- Created a new Standard EXE project in Microsoft Visual Basic. Form1 is created by default.
- From the Project menu, select Components, select Microsoft Windows Common Controls-2 6.0, and click OK.
- Site a MonthView control onto Form1.
- Add the following code to Form1's code window:
Private Sub MonthView1_GetDayBold(ByVal StartDate As Date, ByVal Count As Integer, State() As Boolean)
Dim i As Integer
i = mvwSunday
While i < Count
State(i - 1) = True
i = i + 7
Wend
End Sub
- Right-click on MonthView Control and view its properties.
- Set the MonthRows property to 3.
- Set the MonthColumns property to 4.
- Click OK to close the MonthView's property page.
- Press the F5 key to run the project.
The first month shown will not have its first Sunday in bold. The last month will not have any days set bold. All other months will be displayed as expected.
Additional query words:
Keywords : kbCtrl kbMonthCalCtrl kbVBp600bug kbGrpVB
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug
|