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

Saroj Kumar SahuRank #1,766 · 849 reputationPosted Jun 14, 2015, 9:04 PM EDT
Saroj Kumar SahuRank #1,766 · 849 reputationPosted Jun 11, 2015, 3:31 AM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jun 11, 2015, 4:44 AM EDT
Efe Onah Ojobo32 reputationPosted Jun 11, 2015, 5:04 AM EDT
Vincent Maverick DuranoRank #238 · 10.3K reputationPosted Jun 11, 2015, 5:32 AM EDT
Efe Onah Ojobo32 reputationPosted Jun 11, 2015, 5:55 AM EDT
Efe Onah Ojobo32 reputationPosted Jun 11, 2015, 6:13 AM EDT
Efe Onah Ojobo32 reputationPosted Jun 11, 2015, 6:16 AM EDT
Carlos kambuiRank #2,642 · 528 reputationPosted Jun 11, 2015, 6:25 AM EDT
Efe Onah Ojobo32 reputationPosted Jun 11, 2015, 7:25 AM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jun 11, 2015, 8:38 PM EDT
Efe Onah Ojobo32 reputationPosted Jun 12, 2015, 12:45 AM EDT
Saroj Kumar SahuRank #1,766 · 849 reputationPosted Jun 12, 2015, 3:13 AM EDT
Efe Onah Ojobo32 reputationPosted Jun 12, 2015, 4:54 AM EDT
Efe Onah Ojobo32 reputationPosted Jun 25, 2015, 3:03 AM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jun 25, 2015, 3:12 AM EDT
Nilesh JadavRank #109 · 20.3K reputationPosted Jun 25, 2015, 3:13 AM EDT
"0"cellpadding="0"cellspacing="0">Enter Your Name"server"id="txtTestForRequiredField">"RequiredFieldValidator1"forecolor="Red"errormessage="Please enter your name"controltovalidate="txtTestForRequiredField"runat="server">"Button1"text="Save"runat="server">Thank you !
Saroj Kumar SahuRank #1,766 · 849 reputationPosted Jun 25, 2015, 9:21 PM EDT