T
Tony WONG
i wish to create a button at runtime with same string in the parameters.
Should i pass the parameter in this way? seems not smart! Thank you.
*************************
createbutton("ABC", "ABC", "ABC")
Private Sub createbutton(ByVal newbutton, ByVal buttontext, ByVal
buttonname)
newbutton = New Button()
newbutton.text = buttontext
newbutton.name = buttonname
Me.Controls.Add(newbutton)
End Sub
Should i pass the parameter in this way? seems not smart! Thank you.
*************************
createbutton("ABC", "ABC", "ABC")
Private Sub createbutton(ByVal newbutton, ByVal buttontext, ByVal
buttonname)
newbutton = New Button()
newbutton.text = buttontext
newbutton.name = buttonname
Me.Controls.Add(newbutton)
End Sub