partulu
asked on
Trouble viewing the items in the listbox in Windows form application
I am having trouble with displaying items in a listbox. I am using the following code in Visual Studio.Net 2003 for a windows form application
private void button1_Click(object sender, System.EventArgs e)
{
listBox1.Items.Add(textBox 1.Text);
}
When I keep on pressing the button the text gets added to the list box ( as it is know by the movement of the scroll bar in the list box) but the items in list box are not visible. I have made sure that property visible of listbox is set to true. Still, i am unsuccessful
Can anyone please reply to my question
Thanks
private void button1_Click(object sender, System.EventArgs e)
{
listBox1.Items.Add(textBox
}
When I keep on pressing the button the text gets added to the list box ( as it is know by the movement of the scroll bar in the list box) but the items in list box are not visible. I have made sure that property visible of listbox is set to true. Still, i am unsuccessful
Can anyone please reply to my question
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hope this helps. Cheers -Aaron