Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
0 users currently in Programming. |
User | Post |
olafnes Posts: 11/11 |
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 |
Guy Perfect Posts: 288/451 |
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). |
interdpth Posts: 152/362 |
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! |