Efe Onah Ojobo

Efe Onah Ojobo

  • NA
  • 32
  • 5.9k

programming

Jun 11 2015 7:12 AM

i wrote a code to enable users add item to listBox clears the items from the textBox1 and ComboBox1.But wen i real click without inputing any thing,the textBox1 gives space in the listBox and the ComboBox1 add the previous item that was selected when not as been selected.

   How do i solve this problem and how to make the user no when he or she as not inputed any thing.

}

if (ComboBox1->Empty & textBox1->Empty==true)

Message->Show("Error");

}

but am getting errors


Answers (18)