Hi to all
I am new to this forum .. I am trying to tab a series of data in a list box listbox1 - the data is an array of variables called User - I am trying to use the
vB tab between the variables
but it does not look right - The spaces size and the character size on screen when printed are not the same thereby causing misalignment for long names -
I have tried to use the format string but i end up with the same error because the space size .
I could put character padding but it does not look nice and even then because each charater has a different size it does not always fall right .
Is there a way to do it with a data grid view ? I don;t know how to link the data grid view to an array - I know how to use it with a data set - is there a way to link an internal array directly to a data grid box -
Any hint - any comment - any help would ne moast welcomed
Gerald - From Mauritius
PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'OpenFileDialog1.Filter = "Text files (*.CSV)|*.CSV"
'OpenFileDialog1.ShowDialog() 'display Open dialog box
'streamtest(OpenFileDialog1.FileName)
Dim f AsNew FormReport
Dim INDEX = 1
For INDEX = 1 To 400
'MsgBox(User(INDEX).NameFirst.Length)
'If User(INDEX).tagId <> "0" Then
f.ListBox1.Items.Add( _
INDEX & vbTab & _
User(INDEX).tagId & vbTab & _
User(INDEX).WeightNominal & vbTab & _
User(INDEX).WeightActual & vbTab & _
User(INDEX).Status & vbTab & _
User(INDEX).lastTransId & vbTab & _
User(INDEX).LastDateLogged & vbTab & _
User(INDEX).LastDoorId & vbTab & _
User(INDEX).RelaxWeightControl & vbTab & _
User(INDEX).NameLast & vbTab & _
User(INDEX).NameFirst)
'End If
Next INDEX
f.ShowDialog()
EndSub