PRB: Visible Property of Container Ignored by ActiveX Controls (185084)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
This article was previously published under Q185084 SYMPTOMS
In Visual FoxPro 3.x and 5.x, when a parent container control has a child
ActiveX control added to it, changing the Visible property of the parent
container control to .F. does not hide the child ActiveX control.
RESOLUTION
The workaround is to explicitly set the Visible property of the ActiveX
control to (.F.).
Replace the sample code in the Click event of the command button with the
following code:
IF Thisform.command1.caption = "Hide Container"
Thisform.container1.visible = .F.
Thisform.container1.olecontrol1.visible = .F.
Thisform.command1.caption = "Show Container"
ELSE
Thisform.container1.visible = .T.
Thisform.container1.olecontrol1.visible = .T.
Thisform.command1.caption = "Hide Container"
ENDIF
STATUS
Microsoft is researching this problem and will post new information here in
the Microsoft Knowledge Base as it becomes available.
Modification Type: | Major | Last Reviewed: | 5/12/2003 |
---|
Keywords: | kbpending kbprb KB185084 kbAudDeveloper |
---|
|