I have asked this a few times before, but i still dont get it..
Im using this to create a button at run time
But, i dont create only one, i create several buttons, if i create one, just one, and use thisCode:Set Boton = Me.Controls.Add("VB.CommandButton", "Boton" & Index)
It works fine, but when i create another button, and i want to use the first one, all the methods to that button cease to work. How can i make the methots to work on every button i create?Code:Private Sub Boton_Click() Boton.Caption = "hi" End Sub
Thanks!




Reply With Quote