Hi,
If I use the following code, displaying the bf char array in the label on the form works fine, however if I use the listebox to display the result I get char[]array displayed.
So options;
Converting the bf ToString() works fine, as does conversion using CStr as in
So, is there are way to display the result from the char array in the listbox without conversion, or is it fine to use either of the examples I've given.
I'd like to know the difference if any.
Thanking you.
Oh and I do use the MSDN website and the google monster all the time for research, but sometimes the info isn't always that understandable.
Danny
If I use the following code, displaying the bf char array in the label on the form works fine, however if I use the listebox to display the result I get char[]array displayed.
VB.NET:
Dim bf(15) As Char
Do While sr.Peek() >= 0
sr.Read(bf, 0, bf.Length)
Loop
lsStatus.Items.Add(bf)
lbgip.Text = bf
So options;
Converting the bf ToString() works fine, as does conversion using CStr as in
VB.NET:
Dim bfs As String = bf.ToString()
lsStatus.Items.Add(bfs)
VB.NET:
Dim bfs As String = CStr(bf)
lsStatus.Items.Add(bfs)
So, is there are way to display the result from the char array in the listbox without conversion, or is it fine to use either of the examples I've given.
I'd like to know the difference if any.
Thanking you.
Oh and I do use the MSDN website and the google monster all the time for research, but sometimes the info isn't always that understandable.
Danny