VB作業題高手進

2022-12-21 16:55:16 字數 835 閱讀 7001

1樓:

不是很清楚樓主想問什麼

設定游標跳轉最簡單的是設定tab鍵順序

還可以通過keypress事件觸發 下個文字框foucs對應題目可以通過keypress事件 判斷當前框內的輸入是否合法if txt1.text<>"" thentxt2.foucs() ------------合法 ,下個框獲得焦點

else

msgbox("不能為空")

txt1.foucs() ----------- 如不合法 當前框獲得焦點(重新輸入)

endif

2樓:匿名使用者

例:如果是text1()控制元件陣列

private sub text1_keydown(index as integer, keycode as integer, shift as integer)

if not keycode = 13 then exit subif not isnumeric(text1(index).text) then

msgbox "你輸入了非數字", vbcriticalexit sub

else

if index < text1.ubound thentext1(index + 1).setfocuselse

command1.setfocus

end if

end if

end sub

3樓:

if isnumeric(txt.text) then 『判斷使用者輸入是否非法的數值

msgbox("是數字")

endif

回邊用clik事件

各位高手幫幫忙吧在下的國慶作業,題很短的

悲哀,偶也不會 大概看了一下 第二問p點是ab線段的垂直平分線與圓的交點 答案應該有2個 分別在第2和第4象限 第一問不大確定 應該是無限接近於x軸吧 第一次看錯了 沒有看到b是負的 樓上的你也太賤了吧 剛好複製的我第一次看錯的答案 最小值等價於 p點離ab線段最遠,連結ab 作ab的中垂線圓與圓2...

初中英語作業題,初中英語作業

james is fine 對括號部分提問。how is james?can i ask you a question no know 對括號部分提問。mr green is jim s father who is mr green aren t aunt i think that movie is...

初一的數學暑假作業題

x 2 y 2 8x 10y 41 x 2 8x 16 y 2 10x 25 x 4 2 y 5 2 0 x 4,y 5 x y y x 4 5 5 4 41 20x 2 y 2 6x 4y 13 0 x 2 6x 9 y 2 4y 4 0 x 3 2 y 2 2 0 x 3 0 y 2 0 x 3...