hello, i'm working with a frame control, because i need to display several texts and buttons, and i need to grop them in three diferents sections so i use three frames added as control to get the ability for generate scrollbars (already done), i need to add the elements by code, but i can not do it with the buttons i miss one argument
the code to add control is the next
ThisDisplay.Frame1.Controls.Add(bstrProgID As String, [name], [visible])
i can add a CommandButton with this code
dim bot as CommandButton
Set bot = ThisDisplay.Frame1.Controls.Add("Forms.CommandButton.1", "button1", True)
but i don't know which is the first argument to add a Button from PBSymLib
dim BUT as Button
Set BUT = ThisDisplay.Frame1.Controls.Add( ?????????????? , "button1", True)
hope someone can help me

, i really apreciate your time and help.