我想更改一些文本的可见性,但我的代码无法执行此操作。我没有得到任何错误。我的代码是:
Public Class Form1
Private Property Ay1TarihLabel As Object
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'SatisDataSet.SatisT' table. You can move, or remove it, as needed.
Me.SatisTTableAdapter.Fill(Me.SatisDataSet.SatisT)
Ay1TarihLabel.Visible = False
End Sub
End Class
我做错了什么?
答案 0 :(得分:0)
你应该针对真实标签调用.visible = false,如果你在设计师模式中这样做,你会寻找:
Friend WithEvents Ay1TarihLabel As System.Windows.Forms.Label
或类似的东西。你可以在加载时设置visible = false。