PDA

View Full Version : multiple, unlimited controls....



Coolmo
2004-06-04, 08:09 PM
Is there a way to have or create unlimited controls on a form at runtime? I want to be able to create an image control on my form for every list item in a listbox at runtime. Of course I don't know how many list items I'll have until runtime though. Thoughts?

RobertB
2004-06-04, 08:13 PM
I wouldn't advise a separate control for each item, but rather change a single image control when the list item changes.

However, remember that a form is simply an object.

Coolmo
2004-06-04, 08:32 PM
I'd like to be able to show a small image for every reference to a file (an item in the list) sort of like how a different icon shows up in explorer when a new folder is created. I need to be able to drag and drop these separate images (all showing at once on the form) into or on top of other controls or images for certain things to happen. I want a fluffy, very visual way to add city detail files to a sheet or border (image on the form) and be able to arrange them on that border before exporting the sheet setup out to AutoCAD. I'm sure there's probably a control out there somewhere that will maybe give me the same effect. Is there a control that allows me to drag icons from one place to another like Windows Explorer?