mysql - How can i create buttons from database field in VB? -
i use mysql database. want create new buttons in vb.net every data.
when add new member admin panel, must create new button in vb.net.
any appreciated.
you can add control, including buttons dynamically control's collection:
at basic looks this:
dim mybutton new button mybutton.id = "btnmybutton" mybutton.text = "new button" me.controls.add(mybutton)
the values id , text can come db. want button - can add handler "onclick" event using "addhandler" statement.
the approach described above universal, depending on whether use asp.net or winforms - additional details may need coded.
Comments
Post a Comment