日期:2014-05-17 浏览次数:20968 次
protected override void WndProc(ref Message m)
{
const int WM_HOTKEY = 0x0312;
//按快捷键
switch (m.Msg)
{
case WM_HOTKEY:
switch (m.WParam.ToInt32())
{
case 100:
//MessageBox.Show("!!!");
//Clipboard.GetDataObject();
//点击按钮后能够复制但是不能粘贴。
System.Windows.Forms.Clipboard.GetText();
break;
case 101:
string s1 = textBox2.Text.Trim();
break;
case 102:
Clipboard.SetDataObject(textBox6.Text.Trim());
break;
}
&