textbox als array in VB.NET?
Hallo,
bin noch Anfänger im Umgang mit VB.NET.
In Visual Basic ist z. B. die Verwendung einer Textbox in einer Dimension zulässig. So kann man ganz einfach die Position mal eben verschieben:
for i=0 to 9
textbox1(i).left = 120
next i
Dabei ist es mir egal ob das nun eine Textbox, eine Schaltfläche o. ä. ist.
Aber wie löst man das in VB.net?
Ich hoffe nicht so:
textbox0.left = 120
textbox1.left = 120
textbox2.left = 120
...
for i=0 to 9
textbox1(i).left = 120
next i
Dabei ist es mir egal ob das nun eine Textbox, eine Schaltfläche o. ä. ist.
Aber wie löst man das in VB.net?
Ich hoffe nicht so:
textbox0.left = 120
textbox1.left = 120
textbox2.left = 120
...
Please also mark the comments that contributed to the solution of the article
Content-Key: 89810
Url: https://administrator.de/contentid/89810
Printed on: April 27, 2024 at 02:04 o'clock
2 Comments
Latest comment
Hallo citkid!
Erstellen von Steuerelementarrays unter Visual Basic .NET und Visual C# .NET
Grüße
bastla
Erstellen von Steuerelementarrays unter Visual Basic .NET und Visual C# .NET
Grüße
bastla