How to spawn an imagebox in runtime

Acer / Aspire t120c
August 20, 2009 at 04:35:37
Specs: Microsoft Windows XP Home Edition, 2.002 GHz / 735 MB
hey guys,
It's me again with another problem with the same game, Zombie Defence.

This time I need to spawn imagebox's during runtime and if possible make it a part of an array.

I have spend hours looking though my books and the internet and found nothing.

My aim is that I can have an array of x imageboxes without creating that many imageboxes in the begining.


See More: How to spawn an imagebox in runtime

Report •

August 20, 2009 at 06:07:14

What's the language?

Report •

August 20, 2009 at 19:20:03
it's in VB6.0

Report •

August 21, 2009 at 11:32:30
Then I can't help you; I work with VBScript, VBA, and VB.NET. Sorry.

That said, if you can see the code the Designer makes, then you should be able to copy that code and modify it as required.

Report •

Related Solutions

August 21, 2009 at 12:25:19
You use the Load command.

You creat one imagebox and make it the first item of an array. You can then create as many copies of the imagebox as you wish.

For a = 1 to 10
Load ImageBox(a)

will give you ten imageboxes plus the one you already had.

When you have done you can unload the array with the Unload command(item) command.


Report •

Ask Question