示例#1
0
        //发送私人信息
        private void button1_Click_1(object sender, EventArgs e)
        {
            if (string.IsNullOrWhiteSpace(this.textBox2.Text))
            {
                MessageBox.Show("qq号不能为空");
                return;
            }

            if (string.IsNullOrWhiteSpace(this.textBox3.Text))
            {
                MessageBox.Show("发送消息不能为空");
                return;
            }

            int content = coolQApiForTest.SendPrivateMsg(Convert.ToInt64(this.textBox2.Text), this.textBox3.Text);

            textBox4.Text = "" + content;
            MessageBox.Show("发送完成");
        }