Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
0 users currently in Programming. |
Acmlm's Board - I3 Archive - Programming - Loading Object that's an Array VB6 | New poll | | |
Add to favorites | Next newer thread | Next older thread |
User | Post | ||
interdpth Mole MZM rapist Since: 11-18-05 Last post: 6295 days Last view: 6294 days |
| ||
Ok, so I make an array of say textboxes. One is showing and that is 0 in the array. So i'd like to know how I can show some number of them. And how I can hide them and reload them or something like that. Thanks! | |||
Guy Perfect Since: 11-18-05 Last post: 6297 days Last view: 6295 days |
| ||
Assuming you mean an Object Array in that the Index property is different for them each...
Using a single object on the Form at design time, make its Index property equal to 0. When you run code in your program, you can generate new objects with the Load statement. Let's assume your object is a TextBox control. This is the code you'd use: Load TextBoxArray(1) And, of course, when you want to destroy an object, say Unload TextBoxArray(1). |
|||
olafnes Micro-Goomba Since: 12-18-05 From: shithead Last post: 6494 days Last view: 6494 days |
| ||
On Error Resume Next Dim blah As Integer For blah% = 0 To 49 Load TextBox1(blah%) TextBox1.Visible = True Next blah% assuming you've already created at least TextBox1(0) -- it will create 49 more text boxes -- they'll stack on top of each other at left: 0, top: 0 |
Add to favorites | Next newer thread | Next older thread |
Acmlm's Board - I3 Archive - Programming - Loading Object that's an Array VB6 | | |