2013-06-27 26 views
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 
+0

你在说什么图标?在左上角的那个?因为那个可能是你的边框样式的一部分,你明确的设置为无。 –

+0

是的,我在说标题栏图标的左上角。我没有设置任何图标属性,但如果这是由它自己发生的,请你告诉我如何恢复它。 –

+0

只是不要更改FormBorderStyle属性。 –

回答

0

在开始代码声明:

Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None

这是什么让你的边界/图标不可见。

0

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

相关问题