[Gambas-user] Removing a runtime created control

Martin mbelmonte at belmotek.net
Thu Nov 26 10:59:59 CET 2020


Hi, you could use me.childrens.clear for delete all the controls.

then if you want to delete a specific control what you know its name you 
could use Me["controlnametokill"].delete

Regards.

On 26/11/20 10:55, KKing wrote:
> I create a variable number of controls at runtime (depending on data 
> being processed) with below.
>     hToolButton = New ToolButton(Me) As "My_Button"
>     hToolButton.Text = "MyButton" & CStr(intIndex)
>     hToolButton.Tag = "MyButton" & CStr(intIndex)
> Is there a way to delete an individual "intIndex" based "My_Button" 
> control and or all the "My_Button" controls?
> K.
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----


More information about the User mailing list