when i select the same item in the 1st listbox, how the label originally is 1 became 2...and i dont want the same item to be appear on the 2nd listbox....this code should seems easy but i am a beginner just learning..any help is appreciated thank you...=))
private void btnAdd_Click(object sender, EventArgs e)
{
if (listbox1.SelectedItem != null)
{
listbox2.Items.Add(listbox1.SelectedItem);
}
else
{
MessageBox.Show("Please Select At least 1 item(s) to Add");
}
}
This post has been edited by andylsbc6: 16 January 2010 - 09:26 PM

New Topic/Question
Reply




MultiQuote




|