vb清除編程-九游会j9娱乐平台
ⅰ vb緙栫▼涓,鏈夊瓧鐨勬椂鍊欐竻闄,娌″瓧鐨勬椂鍊欐庢牱鎶婃寜閽鍙樻秷澶憋紵
vb緙栫▼涓,涓轟簡鍦ㄦ湁瀛楃殑鏃跺欐竻闄,娌″瓧鐨勬椂鍊欐庢牱鎶婃寜閽鍙樻秷澶憋紝鍙浠ラ氳繃媯嫻嬫ゆ帶浠剁殑灞炴э紝鑻ヤ負絀轟覆鏃訛紝灝變護瀹冪殑visible灞炴у彉涓篎alse
ⅱ vb大小寫轉化及清除編程編程
private sub command1_click()
text2 = ucase(text1)
end sub
private sub command2_click()
text2 = lcase(text1)
end sub
private sub command3_click()
text1 = ""
text2 = ""
end sub
private sub form_load()
command1.caption = "大寫"
command2.caption = "小寫"
command3.caption = "清除"
end sub
ⅲ 榪欎釜vb紼嬪簭甯鎴戞寚鐐逛竴涓嬭ユ庝箞緙栫▼錛屾竻闄ゅ氨鏄娓呯┖錛岀щ鍘誨氨鏄鍒犻櫎錛岀粨鏉熷氨鏄鍏抽棴紿楀彛銆
form涓婃坊鍔爈ist1錛宭ist2錛屽洓涓鎸夐挳錛屽悕縐板瑰簲鏍囬橈紝浠g爜濡備笅
private sub form_load()
me.scalemode = 3
' 娣誨姞婕旂ず鑿滃崟100涓錛岃彍璋辮嚜宸辨坊鍔狅紝榪欓噷鍙鏄婕旂ず
for i = 1 to 100
list1.additem "鑿滃悕" & i
next i
list1.columns = 3 '璁劇疆鑿滆氨鍙浠ユ樉紺轟笁鍒
list1.height = 100 '璁懼畾楂樺害
end sub
private sub list1_dblclick() '鍙屽嚮鑿滆氨欏硅嚜鍔ㄦ坊鍔
list2.additem list1.text
list2.setfocus
list2.listindex = list2.listcount - 1
end sub
private sub 娣誨姞_click()
list2.additem list1.text
end sub
private sub 縐誨幓_click()
list2.removeitem list2.listindex
list2.setfocus
end sub
private sub 娓呴櫎_click()
list2.clear
end sub
private sub 緇撴潫_click()
me.hide '鎴杣nload me
end sub