Beispiel #1
0
 private void RtxtBox_Ileti_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyValue == 13) // enter e basıldıında
     {
         RtxtBox_Sohbet.AppendText("Ben: " + RtxtBox_Ileti.Text + "\n");
         yaz = new StreamWriter(ag);
         yaz.WriteLine(TxtBox_Name.Text + ": " + RtxtBox_Ileti.Text);
         yaz.Flush();
         RtxtBox_Ileti.Text = "";
     }
 }
Beispiel #2
0
 public void ekranabas(string s)
 {
     if (this.InvokeRequired)
     {
         ricdegis degis = new ricdegis(ekranabas);
         this.Invoke(degis, s);
     }
     else
     {
         RtxtBox_Sohbet.AppendText(s + "\n");
     }
 }