Hi,
I have problem in my application (my messanger) about smaily form .
in pm form i have a buttom for smaily and if user click on that it open a form whit smaily pic that user can select (i did try breakpoint and i know that code coming from smaily form to pm form ) but in pm form i can't put smaily code in richtextbox where user type his/her text and smaily .
this is my code and if you have any other quastion just let me know .
this is code of the class which read smaily code (when user select a smaily) i write this class in smaily form :
CODE
public class Position
{
public int X = 0;
public int Y = 0;
}
public Position pos = new Position();
public void SetPosition(int x, int y)
{
pos.Y = x;
pos.X = y;
}
public void HideMe()
{
this.Hide();
}
and this is a smaily code :
CODE
PM m = new PM();
m.AddSmily(";)");
HideMe();
and this is the code for append smaily code to richtextbox (it work in breakpoint and i have smaily code in a string code like

)
i wirte this code in pm form :
CODE
public void AddSmily(string code)
{
richTextBox1.AppendText(code);
}
the problem is in runtime it doesn't work (i don't have any error it just doen't do anything)