27 lines
322 B
C#
27 lines
322 B
C#
using Components;
|
|
|
|
namespace WinFormsTest
|
|
{
|
|
public partial class Form1 : Form
|
|
{
|
|
public Form1()
|
|
{
|
|
InitializeComponent();
|
|
|
|
InitializeListBox();
|
|
}
|
|
|
|
private void InitializeListBox()
|
|
{
|
|
customListBox.SetItems(new List<string>
|
|
{
|
|
"Hi 1",
|
|
"Hi 2",
|
|
"Hi 3",
|
|
"Hi 4",
|
|
"Hi 5",
|
|
});
|
|
}
|
|
}
|
|
}
|