_
Delt sub Form1 ( ) )
End Sub
Private Sub InitializeComponent ( )
listBox1 = Ny System.Windows.Forms.ListBox ( )
SuspendLayout ( )
'
' listBox1
'
listBox1.FormattingEnabled = sant
listBox1.HorizontalScrollbar = sant
listBox1.Items.AddRange (New Object ( ) {" Punkt 1 , kolonne 1" , etter
" Sak 2 , kolonne 1" , " punkt 3 , kolonne 1" , " Punkt 4 , kolonne 1 ", " element
5 , kolonne 1 "," punkt 1, 2 kolonne "," 2 vare , 2 kolonne "," 3 vare , etter
2 kolonne "} )
listBox1.Location = Ny System.Drawing.Point ( 0 , 0 )
listBox1.MultiColumn = sant
listBox1.Name = " listBox1 "
listBox1.ScrollAlwaysVisible = sant
listBox1.Size = Ny System.Drawing.Size ( 120 , 95 )
listBox1.TabIndex = 0
listBox1.ColumnWidth = 85
'
' Form1
'
ClientSize = Ny System.Drawing.Size ( 292 , 273 )
Controls.Add ( listBox1 )
< p> Name = " Form1 "
ResumeLayout ( False )
End Sub
End Class
4
Klikk på "File " og deretter " Lagre "for å legge til kolonner i Liste- kontroll i C # program .