On form1 I have a command button to open form2. Before opening form2 I open form2 first in design mode to add an extra command button to form2 using the following code:
Dim ctl As Control
Set ctl = CreateControl(FormName, acCommandButton, , , , 100, 100)
I want to set this newly created command button to Transparant = True.
During normal "interactive" design you can set Transparant to Yes in the dialog box. But whereas coding like
ctl.Caption = "New button"
ctl.Name = "MyButton"
works fine, the code
ctl.Transparant = True
gives an error like "This property or method is not supported by the object"
Can anyone help me?
Dim ctl As Control
Set ctl = CreateControl(FormName, acCommandButton, , , , 100, 100)
I want to set this newly created command button to Transparant = True.
During normal "interactive" design you can set Transparant to Yes in the dialog box. But whereas coding like
ctl.Caption = "New button"
ctl.Name = "MyButton"
works fine, the code
ctl.Transparant = True
gives an error like "This property or method is not supported by the object"
Can anyone help me?