private void cmbact_SelectedIndexChanged(object sender, EventArgs e) { if (cmbact.Text == "Free") { ChatwithStudent form = new ChatwithStudent(); form.Show(); } }
private void button1_Click(object sender, EventArgs e) { ChatwithStudent form = new ChatwithStudent(); form.Show(); }