/// <summary>Add a buddy to chat</summary> private void btnAdd_Click(object sender, EventArgs e) { FrmAdd addDialog = new FrmAdd(); if (addDialog.ShowDialog() == DialogResult.OK) { jabberClient.Subscribe(addDialog.AddJID, addDialog.AddJID, null); MessageBox.Show("User has been added:\n" + addDialog.AddJID); } }