Forum: VB.NET Dec 1st, 2008 |
| Replies: 2 Views: 322 You want to make both texts one string and write that to the file.
swrStreamWriter.WriteLine(Me.textStudent.Text + " " + Me.textGrade.Text)
Also research the VB.Net String Functions for further... |
Forum: VB.NET Dec 1st, 2008 |
| Replies: 9 Views: 3,154 If you are going to use the datasource approach, you'll have to modify the datasource variable and reset the datasource of the list.
Private path As String = "c:\"
Dim... |
Forum: VB.NET Nov 30th, 2008 |
| Replies: 9 Views: 3,154 The reason the code doesn't work is because adding an item to a listbox using the .items.add is different than setting the datasource. They don't work together.
If you want to continue to use the... |
Forum: VB.NET Nov 25th, 2008 |
| Replies: 9 Views: 3,154 Not really sure what you're trying to do, but to add a string from the textbox to the list it's as simple as:
lstdisplay.Items.Add(txtinput.Text)
Are you trying to add the contents of the... |
Forum: VB.NET Nov 25th, 2008 |
| Replies: 6 Views: 1,611 while dr.Read()
idcombo.Items.Add(dr(0))
end while |