Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27329

VS 2010 Add ListBox Item

$
0
0
Ok, I used this code to add a listbox item:

Code:

Private Sub Main_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        ListBox1.Items.Add("(Test Item)")
 End Sub

It worked all day yesterday, but today when I do it, nothing appears in the listbox. :( I deleted a lot of my code, but I didn't touch the form load event, nor the listbox. I did however put the listbox on a tab page, but why would that mess something up?

Also, how do I change the color of the actual tab? I changed the color of the tabpage, but the tab itself is pure white.

Viewing all articles
Browse latest Browse all 27329

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>