Click here to Skip to main content
15,915,509 members

Comments by TolgaCiftci (Top 14 by date)

TolgaCiftci 2-Jun-10 13:49pm View    
I use the second bit of code at the beginning as:

private void InputBox_TextChanged(object sender, EventArgs e)
{
if (InputBox.Text.StartsWith("p") == false)//Clear the box if the message does not start with p
{

InputBox.Text = "";

}

if ((InputBox.Text.StartsWith("p") == true) && (InputBox.Text.EndsWith("}") == true))// only process if the message starts with p and ends with }
{
string Message = InputBox.Text;
InputBox.Text = "";// Clear the box when done.

// Butt1 message line
if (Message.StartsWith("plabelt1") == true)
{
if (Message.StartsWith("plabelt1_BackColor") == true)
{
Message = Message.Substring(19);
labelt1.BackColor = System.Drawing.Color.FromName(Message.Replace("}", ""));
}
}

I know it doesnt exist therefore it can't but how am i going to overcome that?
TolgaCiftci 1-Jun-10 13:32pm View    
When I add the name property.. lets say I add the name labelt, will it go as labelt1, labelt2 as I create new labels?
TolgaCiftci 27-May-10 11:45am View    
I used Bring to front is it the same with Z-order?
TolgaCiftci 25-May-10 14:24pm View    
Thanks for taking your time and trying to help I used regular expression and fixed the problem. but to answer your question it does contain 1 or more digits so it can be {34,2343,233,1)
TolgaCiftci 25-May-10 9:07am View    
I don't know if my earlier comment went through but I can't see it posted so if this is a duplicate accept my apologies. When I try your code it is giving me unrecognized escape sequence error for "d"s on the expression. Any ideas?