예제 #1
0
        private void Ionel_Click(object sender, EventArgs e)
        {
            hi = "Ionel:" + RichBoxText2.Text;
            if (count == 0)
            {
                lenght = RichBoxText1.TextLength;

                RichBoxText1.Text = hi;
                count++;
            }
            else
            {
                lenght = RichBoxText1.TextLength + 1;

                RichBoxText1.Text = RichBoxText1.Text + "\n" + hi;
            }



            RichBoxText1.Select(lenght, hi.Length);
            RichBoxText1.SelectionColor = Color.Blue;
        }
예제 #2
0
        private void Maria_Click(object sender, EventArgs e)
        {
            //  cod = 0;
            hi = "Maria:" + RichBoxText2.Text;

            if (count == 0)
            {
                lenght = RichBoxText1.TextLength;

                RichBoxText1.Text = hi;
                count++;
            }
            else
            {
                lenght = RichBoxText1.TextLength + 1;

                RichBoxText1.Text = RichBoxText1.Text + "\n" + hi;
            }


            RichBoxText1.Select(lenght, hi.Length);
            RichBoxText1.SelectionColor = Color.Red;
        }