コード例 #1
0
ファイル: FrmMain.cs プロジェクト: xinqinglhj/CSkin.Example
        private void chatListBox_DoubleClickSubItem(object sender, ChatListEventArgs e, MouseEventArgs es)
        {
            if (es.Button == MouseButtons.Right)
            {
                return;
            }
            ChatListSubItem item = e.SelectSubItem;

            item.IsTwinkle = false;

            //bool isFormexist;
            string windowsName = "与 " + item.NicName + " 对话中";
            IntPtr handle      = NativeMethods.FindWindow(null, windowsName);

            if (handle != IntPtr.Zero)
            {
                Form frm = (Form)Form.FromHandle(handle);
                frm.Activate();
            }
            else
            {
                //ipSend为从列表中取出,要发送的对象的IP
                FrmQQChat fChat = new FrmQQChat(item);
                fChat.Text = "与 " + item.NicName + " 对话中";
                fChat.Show();
            }
        }
コード例 #2
0
 public FrmCountenance(FrmQQChat frm)
 {
     InitializeComponent();
     this.chat = frm;
     SetStyles();
     // Window Style
     this.FormBorderStyle = FormBorderStyle.None;
     this.WindowState     = FormWindowState.Minimized;
     //this.Show();
     this.Hide();
     this.WindowState   = FormWindowState.Normal;
     this.ShowInTaskbar = false;
     this.TopMost       = true;
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.ControlBox    = false;
 }