Dynamically add button controls
I am writing an app that will need to dynamically generate a label and two buttons for every rows it pulls out of a database.
so if there are 3 rows i need to generate
label button button
label button button
label button button
i've never done this before and i don't know a) how to dynamically generate the controls, and b) how to hook up events.
can someone tell me how, or point me in the direction of a tutorial?
Re: Dynamically add button controls
Hi,
Always do a forum search before posting a query. Most wquestions have been covered.
As a start look in the codebank at
http://www.vbforums.com/showthread.php?t=328100
where you will find what you want in the middle of the code (which dynamically creates texboxes and handlers.
Best of luck.