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

VS 2010 Need Help with User Form

$
0
0
First off, I hope I posted this is the right section and sorry if I didn't. I am new to visual basic and am creating a user form. There is a list box on the user form and I want it to automatically be populated with some works, such as "apple" " orange". This seems pretty basic right?!!! well not for me... My code:
Private Sub ListBox1_Click()
ListBox1.AddItem "asdf"
End Sub
.... this doesn't work... i'm assuming it is becaus of the _Click() at the end of the top line. What is that supposed to be set as? I have looked all over and I can't find anything that discusses my particular problem and its getting quit frustrating. I will greatly appreciate all help.

Thanks

Viewing all articles
Browse latest Browse all 27376

Trending Articles



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