-
Me again,
I can create my control array at runtime... how do I remove items from it now?
-
instead of load, use unload
-
Ok, ya I was doing that but I was unloading the 0'th item and it didn't like that. When I unload an item in the array, say the 3rd item of 5, it leaves a gap in the array and it didn't like that either. I thought it would automatically move the other items (4 and 5) down to 3 and 4. I wrote code to handle this.
-
Could you send me the code? I would sure need it.
My problem is (among other things) that when I first load some controls, then unload one of them and then load a new one, the computer says that the object is already loaded.
ALso, how can you use code to change the selected tab of a tabstrip? I've tried Call TabStrip1_Click, but it doesn't help since I can't tell what tab should be selected.
Pentax
-
Then don't unload the first, it's just the original that u shoudn't have visible in designtime. To unload without gaps do this:
Code:
Unload controlarray(controllarray.counter-1)