
ActiveX Doc: can't change menu text after document is sited
I am attempting to dynamically change the menu text of menus that have been
"negotiated" into Internet Explorer (4.0) menus at runtime. For example:
Private Sub Command1_Click()
If mnuTest.Caption = "Test" Then
mnuTest.Caption = "Test2"
Else
mnuTest.Caption = "Test"
End If
End Sub
has no effect.. In fact, the Visible and Enabled properties don't have any
effect either..
If, however, I change the menu text in the UserDocument_Initialize event, it
works.. However, I am passing parameters via a QueryString and that isn't
available, of course, until the document is sited (and, apparently any
change after siting doesn't take effect, so I have a classic Catch-22!)
Anybody else had this problem? Better yet, anybody else found a solution?
Tim Tow, CPA MCSD
Applied OLAP, Inc