* New post Constructor Destructor and Inheritance& Array , Virtual base class in c++ language

Sunday, 17 March 2013

0 PROGRAM FOR ARRAY USE LISTBOX CODING IN VB.NET

PROGRAM FOR ARRAY USE LISTBOX CODING IN VB.NET





Public Class Form1
    Dim listbox1 As ListBox
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        listbox1 = New ListBox()
        listbox1.Size = New Size(100, 200)
        listbox1.Location = New Point(200, 200)
        Me.Controls.Add(listbox1)
        listbox1.MultiColumn = True
     
        Dim intloopIndex As Integer
        For intloopIndex = 1 To 20
            listbox1.Items.Add("item" & intloopIndex.ToString())


        Next intloopIndex
        listbox1.EndUpdate()



    End Sub
End Class

0 comments:

Post a Comment

 

PROGRAMMINGqueen Copyright © 2011 - |- Template created by O Pregador - |- Powered by Blogger Templates

Blogger Widgets