<a href="http://www.micropoll.com/akira/mpview/585320-168921">Click Here for Poll</a><a href="http://www.questionpro.com" title="online surveys">Online Survey</a><BR> | <a href="http://www.micropoll.com" title="Website Polls">Website Polls</a><BR> | <BR><a href="http://www.micropoll.com/akira/MicroPoll?mode=html&id=168921">View MicroPoll</A></div>

Visual Studio 2010!

Read now >

Windows Mobile Development Thoughts

Read now >

View Now
DevSource RSS FEEDS
XML Want an easy way to keep up with breaking tech news? And the Get DevSource headlines delivered to your desktop with RSS.
ADVERTISEMENT
ADVERTISEMENT

 

ADVERTISEMENT
Dynamic Code Creation Techniques in VB.NET
By John Mueller

Rate This Article: Add This Article To:

Dynamic Code Creation Techniques in VB.NET
( Page 1 of 4 )

Dynamic code creation techniques can make certain classes of application development easier.

Normally, a developer creates a static design and that design provides everything needed for the application to work as anticipated. However, there are situations where a developer might not be able to anticipate every need at the outset.

This article looks at two such situations. The first is when a developer needs to create a control dynamically and then attach code to that control. For example, you might want to create a list of links, but not know how many links to create or the data that will appear in those links until runtime. The second is when you need to define code on the fly to reflect a particular need. For example, you may have to execute code that reflects the user’s system configuration.

Situations such as these don’t occur every day. In fact, they’re extraordinary conditions that you may not encounter more than a few times as a developer. However, it’s important to realize that .NET provides methods for dealing with dynamic situations. Given the right technique, you can write applications that are flexible enough to deal with any dynamic situation.



 
 
>>> More ASP and .Net Coding Techniques Articles          >>> More By John Mueller