private void ButtonClick(object sender, EventArgs e) { chatListBox.Items.Clear(); Button btn = (Button)sender; activeFrdMemId = dbNew.ActiveFrdMemId("SELECT `mem_id` FROM `membertable` WHERE `user_name` = '" + btn.Text + "'"); chatListBox.Items.Add(activeFrdMemId.ToString()); btn.Enabled = false; if (msgLimit > 0) { msgLimit = 0; } }
private void ButtonClick(object sender, EventArgs e) { chatListBox.Items.Clear(); Button btn = (Button)sender; activeFrdMemId = dbNew.ActiveFrdMemId("SELECT `mem_id` FROM `membertable` WHERE `user_name` = '" + btn.Text + "'"); chatListBox.Items.Add("Talking to : " + btn.Text + " [ " + activeFrdMemId.ToString() + " ] "); StartChat.Visible = true; StartChat.Enabled = true; ShowOldMsg.Visible = true; if (msgLimit > 0) { msgLimit = 0; } }