0

我正在使用此代码在我的表单加载事件中显示表单,但是在表单的表单加载图标消失后,我想显示我的图标,请帮助我这是代码:

Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None 'Turning off border
Me.SetBounds(meleft, metop, Me.Width, MinimumSize.Height) 'setting the loaction and the size of the  form

    For i As Integer = 0 To meheight Step 20
        If (Me.Height < meheight) Then
            Me.Top = Me.Top - 20
            Me.Height = Me.Height + 20

            Me.Refresh()

            For FadeCount = 40 To 40 Step 20
                Me.Opacity = FadeCount / 100

                Threading.Thread.Sleep(10)
            Next
        Else
            Exit For
        End If
    Next

    Me.Height = meheight
    Me.Top = (msize(1, 1) - Me.Height) / 2 + msize(1, 3)
    Me.Opacity = 99
    Me.FormBorderStyle = Windows.Forms.FormBorderStyle.FixedSingle
4

2 回答 2

0

在您声明的代码开头:

Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None

这就是使您的边框/图标不可见的原因。

于 2013-06-27T14:16:16.703 回答
0

在 Form1 属性--> 窗口样式中:设置 ControlBox = True。

于 2016-11-20T19:15:25.447 回答