Pēcis Beisikāns' Journal
View:Personal Journal.
View:Friends.
View:Calendar.
Missed some entries? Then simply jump to the previous day or the next day.

Sunday, April 15th, 2007

Subject:Control Arrays in Visual Basic .NET
Time:4:22 pm.
Mood:angry.
Hyaaargh!! Kāpēc VB.NET nav control arrays!? Situācija: man ir kaudze ar ProgressBar'iem - Progress1, Progress2, utt.

Me.Controls("Progress" & index).Maximum = whatever
Error: Maximum is not a member of Control.

Kā lai eleganti sanumurē viņus? Es negribu darīt šādi:
Private Progresi(99) as ProgressBar
Sub Form_Load(...)
    Progresi(0) = Progress1
    Progresi(1) = Progress2
    utt.
Risinājums. Ja kādu interesē. )
Comments: Read 2 or Add Your Own.

Pēcis Beisikāns' Journal

View:User Info.
View:Friends.
View:Calendar.
View:Memories.
Missed some entries? Then simply jump to the previous day or the next day.