A anguslai Unregistered / Unconfirmed GUEST, unregistred user! 2007-01-11 #1 我是C#初学者,大家能告诉我在C#中按回车键指向下一个焦点是怎么样实现的。[] 代码:
月 月冷无痕 Unregistered / Unconfirmed GUEST, unregistred user! 2007-01-11 #2 发消息 sendmessage(Handle,WM_nextdlgctl,0,0)
J jock Unregistered / Unconfirmed GUEST, unregistred user! 2007-01-11 #3 KeyPress事件写下如下代码就好了: if (e.KeyChar == System.Convert.ToChar(13)) { SendKeys.Send("{Tab}"); }
X xminsong Unregistered / Unconfirmed GUEST, unregistred user! 2007-02-04 #4 SelectNextControl(ActiveControl, true, true, true, true)
F forrestsun Unregistered / Unconfirmed GUEST, unregistred user! 2007-02-04 #5 窗体内写入 protected override bool ProcessDialogKey(Keys keyData) { if (keyData == Keys.Return) return base.ProcessDialogKey(Keys.Tab); else return base.ProcessDialogKey(keyData); }
窗体内写入 protected override bool ProcessDialogKey(Keys keyData) { if (keyData == Keys.Return) return base.ProcessDialogKey(Keys.Tab); else return base.ProcessDialogKey(keyData); }