Skip to main content
gamedev.net
🔒 Locked

vb6 control array

Started by BloodLust666 3 replies 800+ views
Original Post
BloodLust666
BloodLust666
I have a single picturebox array that i want to turn into an array with code, how would i do that?
-------------------------Unless specified otherwise, my questions pertain:Windows Platform (with the mindset to keep things multi-platform as possible)C++Visual Studio 2008OpenGL with SFML
SiCrane
SiCrane
You have an array that you want to turn into an array. It sounds like you don't need to do anything, as the desired result is a precondition.
BloodLust666
BloodLust666
oops... i meant, i have a picturebox control, it's not an array.. i want to make it an array by specifying the number of items in the array.

ie: pic_image = makeintoarray(5)
pic_image(0).dosomething
pic_image(4).dosomething
-------------------------Unless specified otherwise, my questions pertain:Windows Platform (with the mindset to keep things multi-platform as possible)C++Visual Studio 2008OpenGL with SFML
SiCrane
SiCrane
I don't understand what you mean by you want to make it an array, and your example code isn't very helpful.
manu1510
manu1510
I think the only way you can make an array of picturebox components in Visual Basic is by first making one component and then copying and pasting it. Then a dialog box appears asking you whether you want an array of components. If you give 'Yes' you get a set of components with names
Picture1(0)
Picture1(1)
Picture1(2) e.t.c

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.