vb乙個按鈕多選擇

2025-05-06 01:15:10 字數 1121 閱讀 9913

1樓:網友

這個可以弄到另乙個頁處理,或者這個按鈕進行告行謹傳值,值不襪基為空的時候就出現你要的帶豎字,我舉個例子:

dim type

type=request("type")

if type=2 then

target=_blank>

target=_blank>新狼。

end if

2樓:帳號已登出

控制項:frame1,內有check1(0~2)陣列,還拆首有一label1

private sub check1_click(index as integer)

check1(index).caption= false

end sub

private sub form_load()= false

我愛"check1(0).caption = 我家"

check1(1).caption = vb"念轎。

check1(2).caption = 我旅高數的親人"

end sub

private sub label1_click()= true

end sub

3樓:網友

你問的是vb程式還是asp的啊!我認為一樓的好象答非所問啊。

vb中option單選按鈕如何能選中多個?

4樓:網友

假如有三道單選題。我們把它分佈排列好。按理是每一行只有乙個被選上。但執行時,6個選項只能選擇乙個。

end錯誤示範二。

用容器將它們分組。結果和示範一是一樣。無法實現單行單選。

end正確示範。

先畫出乙個frame

在frame1上面畫出optionbutton單選按鈕。此處是關鍵,不可以直接雙擊。

補齊三道題目。執行結果,正是我們想要的,每一行都可以選上。

end補充。

如果單選按鈕optionbutton是雙擊出來的。直接移到frame裡面去是不行的。補救方法是:右鍵單選按鈕,選擇剪下,在frame裡面右鍵選擇貼上。

檢查單選按鈕是否在容器frame內:直接移動frame,內容都跟著一起移動則表明是在容器內。

VB基礎問題,VB一個基礎問題

private sub command1 click static i as integer dim a a array 小1 王2 小3 李4 太5 多6 了7 不8 寫9 了10 label1.caption a i if i 9 then i i 1end sub private sub co...

VB的問題,一個VB的問題

以下 只需要按command1就可以同時顯示text1和text2了 option explicit option base 1 private sub command1 click dim a 15 as integer dim i as integer text1.text for i 1 to...

vb的問題,vb的一個問題

private sub form queryunload cancel as integer,unloadmode as integer 點選右上角的關閉 dim a as integer a msgbox 確認關閉嗎?vbokcancel vbquestion,系統提示 if a vbok the...