AlJones
New member
I'm retired and older than Methuselah so please be nice and bear with me. The last 'production programming' I've done was in VB.Net 2015 and am trying to upgrade my abilities in VB Community 2022.
Given the following code segment:
currentrow is the current row of comma separated data read from an external file (readfields). The number of items will probably vary so building this dynamically is, in my old mind, the best way to go.
I'm seeing the boxes where the label should be, but nothing in the box. Why not?
Since I'm asking stupid questions, on 'form1' I can't seem to find the 'scrollbar' option and I will need to allow scroll bars to see all of the items.
For those interested, I'll also be adding another column which contains the names of fields from another file and then between then a drop area to allow me to equate one field with the other. Once the fields are related, I'll process the second file moving data between the fields in the second file to the corresponding fields in another file. Any suggestions on how to proceed will be much appreciated.
//al
Given the following code segment:
VB.NET:
Dim lrow As Integer = 60
Dim lcol As Integer = 25
ReDim lblqus(currentrow.Length)
For i = 0 To currentrow.Length - 1
lblqus(i) = New Label With {
.Name = "lblqus" & i + 1,
.Size = New Size(74, 18),
.Visible = True,
.BorderStyle = BorderStyle.FixedSingle,
.Font = New Font("Microsoft Sans Serif", 10, FontStyle.Regular),
.BackColor = Color.MistyRose,
.Location = New Point(lcol, lrow),
.Text = currentrow(i)
}
'set the location
Controls.Add(lblqus(i))
lrow += 25
Next
currentrow is the current row of comma separated data read from an external file (readfields). The number of items will probably vary so building this dynamically is, in my old mind, the best way to go.
I'm seeing the boxes where the label should be, but nothing in the box. Why not?
Since I'm asking stupid questions, on 'form1' I can't seem to find the 'scrollbar' option and I will need to allow scroll bars to see all of the items.
For those interested, I'll also be adding another column which contains the names of fields from another file and then between then a drop area to allow me to equate one field with the other. Once the fields are related, I'll process the second file moving data between the fields in the second file to the corresponding fields in another file. Any suggestions on how to proceed will be much appreciated.
//al