Visual Basic Express 2010 Tutorial 40 - Dynamically Making Objects - EZInvaders Part 9 Game


Copy and pasting objects in the form manually does works for small sets of objects. If the application needs 100s of objects then copy and pasting will not work well. What is needed is to dynamically add objects to the form. Make a variable as the object you want to create. Make a new instance of that object, set the properties, then add the object to the controls by using Controls.Add

Code Download
EZInvaders.zip
InvadersWav.zip
Invader_Shooter_Pics.zip
FB.zip (FB picture)