Author: bthumber | Posted on: 5/21/2010 11:25:50 AM | Views : 299

 I have two buttons on a messaging form. A "To" (who's going to get the message) and "Cc" (who's going to get a copy). The user choose the names from a listbox that popup when the "To" button is clicked. When the user click the "Ok" button the name is moved to the "To" label.
If the user now wishes to CC someone how do I get the "ok" button to know I've click the "CC" and not the "To" and to put the name on the "CC" label?
I tried switch statement but was not working
string text = btnTo.text; switch (text.trim()) { case "To": Do something break; case "Cc": Do something break; default: Label1 += "Please choose To."; }  Do know how to ...

Go to the complete details ...