Hello Guys!!!
My problem is if i run Code with Messagebox it will work fine but if I Run code after comment messagebox line it will not display or not working as expected...
Thanks in advanced
string mess = txtChatBox.Text.Remove(txtChatBox.Text.LastIndexOf(Environment.NewLine));
int newM = mess.LastIndexOf("\n");
if (newM == -1)
{
mes.Close();
mes = new frmMessage(mess.Substring(0, mess.Length));
mes.Show();
//MessageBox.Show("Not Working");
}
else
{
mes.Close();
mes = new frmMessage(mess.Substring(newM + 1, (mess.Length - newM) - 1));
mes.Show();
MessageBox.Show("Working");
txtMessage.Text = "";
txtMessage.Focus();
}

Salman BegRank #284 · 8.8K reputationPosted Mar 4, 2019, 7:08 PM EST
sourav adhikary42 reputationPosted Mar 4, 2019, 7:21 PM EST
Salman BegRank #284 · 8.8K reputationPosted Mar 4, 2019, 7:34 PM EST
sourav adhikary42 reputationPosted Mar 4, 2019, 7:36 PM EST
Salman BegRank #284 · 8.8K reputationPosted Mar 4, 2019, 7:52 PM EST