public string Form2(string strSql):this() 

this.strSql=strsql; 

解决方案 »

  1.   


    怎么改啊?
    Public Function Form_customer_order(ByVal strSql As String) As String :Inherits Me()
            Me.strSql = strSql
        End Function
      

  2.   

    你的代码写错了吧
    Form2应该是一个构造方法,不应该有返回值类型
    应该象下面这样写吧?public Form2(string strSql):this() 

    this.strSql=strsql; 

    翻译后
    Public Sub New(ByVal strSql As String)
        Me.New()
        Me.strSql = strSql
    End Sub 
      

  3.   

    Public Sub New(ByVal strSql As String) 
        Me.New() 
        Me.strSql = strSql 
    End Sub 注意 Me.New() 必须第一行,而且只能在构造函数中调用
      

  4.   

    還有一個問題'Public Sub New(strSql As String)' 的參數 'strSql' 未指定引數。