Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
October 2017
SunMonTueWedThuFriSat
1234567
891011121314
15161718192021
22232425262728
293031    

Calendar Calendar

RSS feeds


Yahoo! 
MSN 
AOL 
Netvibes 
Bloglines 


Social bookmarking

Social bookmarking Digg  Social bookmarking Delicious  Social bookmarking Reddit  Social bookmarking Stumbleupon  Social bookmarking Slashdot  Social bookmarking Yahoo  Social bookmarking Google  Social bookmarking Blinklist  Social bookmarking Blogmarks  Social bookmarking Technorati  

Bookmark and share the address of battle programmers alliance on your social bookmarking website

vb.net listbox basics

View previous topic View next topic Go down

vb.net listbox basics

Post  Admin on Mon May 06, 2013 12:22 pm

form controls :
button
listbox

Code:
Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        ListBox1.Items.Add("one")
        ListBox1.Items.Add("two")
        ListBox1.Items.Add("abc")
        ListBox1.Sorted = True
        For I = 0 To ListBox1.Items.Count - 1
            MsgBox(ListBox1.Items(I).ToString)
        Next
    End Sub
End Class

get selected list string item :

Code:
dim str as string = ""
str = ListBox1.SelectedItem

_________________
kurayami no kagi
avatar
Admin
Admin

Posts : 58
Join date : 2011-08-01

View user profile https://yotamarker.justforum.net

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum