Um.... Long Day Help
-
How do I put this "( ) - " in a textBox lol..... ------------------ I'm naked under my clothes...
-
How do I put this "( ) - " in a textBox lol..... ------------------ I'm naked under my clothes...
It must have been a really long day! I'm not sure what you are doing, but you have the answer in your question to some degree! A bit harder question would be how to put a "\" in a textbox! To apply your question to a possible development problem let's display numbers which will be contained in parenthesis and a "-" if the number is negative.
private void SetNumber(TextBox displayArea, decimal balance)
{
displayArea.Text =
balance >= 0 ? balance.ToString() : string.Format("( {0} )-", balance.ToString());
}_____________________________________________ tagline under construction!