ACC97: Toggling Visible Property Makes Calendar Control SmallerID: Q164096
|
Moderate: Requires basic macro, coding, and interoperability skills.
When you toggle the Visible property of a Calendar control on a form from
True to False and then back to True again, the control gets smaller on the
form. It continues to shrink as you continue to toggle its Visible
property.
The BorderStyle property of the Calendar control is set to something other than Transparent.
Set the BorderStyle property of the Calendar control to Transparent. Then if you want a border around the Calendar control, drag a Rectangle control around the Calendar control, and set the BorderStyle of the rectangle to the desired effect.
Microsoft has confirmed this to be a problem in Microsoft Access 97.
Form: ShrinkCalendar
-----------------------------
Caption: Calendar Form
Calendar control 8.0:
Name: axCalendar
BorderStyle: Solid
Command button:
Name: cmdToggle
Caption: Toggle Calendar
OnClick: [Event Procedure]
Private Sub cmdToggle_Click()
Me!axCalendar.Visible = Not Me!axCalendar.Visible
End Sub
Additional query words: ODE custom
Keywords : kbdta
Version : 97
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: April 29, 1999