原來(lái)一直是為每個(gè)文本框的keypress增加:
if(e.keychar = '/r') sendkeys.send("{tab}");
最近想想,其實(shí)有更簡(jiǎn)單的方法,把form的keypreview設(shè)為true,然后在form的keypress中增加下列代碼即可:
if (e.keychar == '/r')
this.selectnextcontrol(this.activecontrol, true, true, true, true);
|
新聞熱點(diǎn)
疑難解答
圖片精選