How to set a command button to Transparant = True

Jaco K

Registered User.
Local time
Today, 15:00
Joined
Aug 4, 2006
Messages
12
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?
 
Problem Solved, I think.

The method you're using should work fine. You simply need to check the spelling of the word 'Transparent.'

Good luk.

-Curt
 
I should be ashamed of myself. There's no better proof I'm a real amateur.
Sorry.
 

Users who are viewing this thread

Back
Top Bottom