大佬教程收集整理的这篇文章主要介绍了vb.net – 如何确定winform上的不活动,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
这就是我所拥有的.
Private Sub btnShowForm_Click(sender As Object,e As EventArgs) Handles btnShowForm.Click 'This procedure runs when the btnShowForm 'button is clicked. The procedure maximizes the size 'of the form,hides the left right button and displays the button 'to expand the form. It also moves the combobox down. 'It calls the viewButtons function to hide and 'display the right buttons. 'The procedure also uses a timer to set the fade in and out the 'form when is min or max Me.Height = 126 Me.opacity = 0.2 'About 20% timNavigationPage.Interval = 100 'about one-tenth of a second timNavigationPage.Start() 'Start the timer cmbViewDataSheets.LOCATIOn = New Point(741,89) viewButtons(false,TruE) End Sub Private Sub timNavigationPage_Tick(ByVal sender As System.Object,ByVal e As System.EventArgs) Handles timNavigationPage.Tick 'Initialize the timer to fade form. Dim x As Double = 0.075 If Me.opacity <= 1 Then Me.opacity += x 'increment opacity with 7.5% ElseIf Me.opacity + x > 1 Then timNavigationPage.Stop() 'Stop the timer then the opacity has reached a 100% End If End Sub
以上是大佬教程为你收集整理的vb.net – 如何确定winform上的不活动全部内容,希望文章能够帮你解决vb.net – 如何确定winform上的不活动所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。