Var b As WebButton ’ this is the control class
b = New Button1 ’ create clone of the control on the layout
b.Caption = “Clone”
b.Left = Me.Left + Me.Width + 10 ’ reposition it
I get this error from the above code: [ Button1 is a control set]
WebPage1.Opening, line 2
The constructor of this class is protected, and can only be called from within this class
b = New Button1 ’ create clone of the control on the layout
Also tried
Var b as Button1
and no difference
It works fine on web if I use “new WebButton” instead
1 post - 1 participant