表格不隐藏

时间:2019-07-11 03:27:21

标签: vb.net

加载后是否可以隐藏表单?

我尝试将“ me.hide”代码直接放在form1.load事件上。

 Me.Hide()
        Try
            sFileName = "resources\" & My.Computer.Name & "_config.txt"
            srFileReader = System.IO.File.OpenText(sFileName)
            srFileReader.Close()
        Catch ex As Exception
            MsgBox("The application is running for the first time. Please set the configuration based on your preference.", MsgBoxStyle.Information, "NOTICE!")
            checkFieldsTimer.Enabled = True
            cmbInterval.SelectedItem = cmbInterval.Items(0)
        End Try

显然,表格仍然显示,我对如何处理感到困惑。

0 个答案:

没有答案