mation);return;}localTxt=string.Format("[私聊]您在{0}对{1}说:\r\n{2}\r\n\r\n",DateTime.Now,_receiver,msg);sendTxt=string.Format("[私聊]{0}在{1}对您说:\r\n{2}\r\n\r\n",_username,DateTime.Now,msg);//发送接受者用户名_nws.Write(Encoding.Unicode.GetBytes(_receiver),0,Encoding.Unicode.GetBytes(_receiver).Length);}_nws.Write(Encoding.Unicode.GetBytes(sendTxt),0,Encoding.Unicode.GetBytes(sendTxt).Length);chatrcd_rtb.AppendText(localTxt);msg_tb.Clear();}///<summary>///有新消息来时闪烁任务栏并且保持聊天记录内容滚动到最底端,QQ就是这么玩滴~///</summary>///<paramname="sender"></param>///<paramname="e"></param>[DllImport("user32.dll")]publicstaticexternboolFlashWindow(IntPtrhWnd,boolbInvert);privatevoidchatrcd_rtb_TextChanged(objectsender,EventArgse){chatrcd_rtb.ScrollToCaret();if(this.WindowState==FormWindowState.Minimized){FlashWindow(this.Handle,true);