引用非共享成员vb.net错误

时间:2015-02-26 18:46:24

标签: vb.net visual-studio-2013

Public Class frmwelcome3
    Dim holsearch = frmholidaysearch

    Private Sub btnholidayswelcome3_Click(sender As Object, 
               e As EventArgs) Handles btnholidayswelcome3.Click
        Me.Hide()
        holsearch.Show()

我收到错误...引用vb.net错误的非共享成员

1 个答案:

答案 0 :(得分:1)

您需要创建类frmholidaysearch的新实例。将=替换为As New