欢迎光临
我们一直在努力

VB.NET窗口渐淡关闭-.NET教程,VB.Net语言

建站超值云服务器,限时71元/月

private sub form1_closing(byval sender as object, byval e as system.componentmodel.canceleventargs) handles mybase.closing

if msgbox("請注意看關閉的視窗", msgboxstyle.question + msgboxstyle.okcancel, "關閉") = msgboxresult.ok then

dim d as double

for d = 1 to 0 + 0.2 step -0.2

system.threading.thread.sleep(50)

application.doevents()

me.opacity = d

me.refresh()

next d

else

e.cancel = true

end if

1.設視窗為form1

2.將變數命名為d

3.依物件名稱適當更改程式碼

end sub

–蓝色小铺(http://www.blueshop.com.tw/skillboard/show.asp?repno=1232&page=1&pgmtype=asp.net)

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » VB.NET窗口渐淡关闭-.NET教程,VB.Net语言
分享到: 更多 (0)

相关推荐

  • 暂无文章