private void BtnEnviar_Click(object sender, EventArgs e) { ConexãoChat conexãoChat = new ConexãoChat(); conexãoChat.msgCaixa = txtCaixa.Text; rtbCaixa.Text = "Caixa: " + txtCaixa.Text; txtCaixa.Text = ""; }
private void ChatCaixa_Load(object sender, EventArgs e) { ConexãoChat conexãoChat = new ConexãoChat(); MessageBox.Show(conexãoChat.msgGerente); rtbCaixa.Text = conexãoChat.msgGerente; }