How can I load controls at runtime in VB.NET as we used to use 'Load' keyword to load any control?
While it's relatively simple to New up a control and plop it on the form, there's the whole big problem of how to handle those dynamically created controls events. If you can't handle the button click, there's no sense in putting the dynamically created button on the form in the first place.
Instead of writing a whole article on answering this question, I'll refer you to Marc Clifton's excellent two-part article that shows a solid architecture on handling dynamic controls in building a system to allow you to reuse the same UI for both Windows Forms and Web Forms!
Dig Deeper on Win Development Resources
Related Q&A from John Robbins
What is a JAD session? This term is referred to often in job postings and seems like some kind of brainstorm you carry out with a client to define IT... Continue Reading