0

我想改变一些文本的可见性,但我的代码做不到。我没有收到任何错误。我的代码是:

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

我究竟做错了什么?

4

1 回答 1

0

您应该针对真实标签调用 .visible = false ,如果您在设计器模式下执行此操作,您会寻找: Friend WithEvents Ay1TarihLabel As System.Windows.Forms.Label 或类似的东西。您可以在加载时设置 visible = false 。

于 2013-09-27T21:04:58.833 回答