i have controls created at runtime using
Me.Controls.Add("VB.CommandButton","CommandNew",me)
Now i have a piece of VB code in a string variable e.g. "Msgbox Hello", how do i place this string behind the Click event of this new button?
Can anyone help?
Me.Controls.Add("VB.CommandButton","CommandNew",me)
Now i have a piece of VB code in a string variable e.g. "Msgbox Hello", how do i place this string behind the Click event of this new button?
Can anyone help?