【发布时间】:2014-04-25 08:12:55
【问题描述】:
在 VB.Net Windows 窗体中编译为 DLL。 DLL 接受一个参数值和没有值的参数 DLL 不被调用。并希望在 C# win 形式中相同。 有可能吗?那怎么办?
Public Class Form1
Public gl_Permission As New DataTable
Public gl_FomCode As String
Public gl_FormName As String
Public gl_dtServer As DateTime
Public Sub New(ByVal Permission As DataTable, ByVal FormCode As String, ByVal FormName As String, ByVal dtServer As DateTime)
' This call is required by the designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
gl_Permission = Permission
gl_FomCode = FormCode
gl_FormName = FormName
gl_dtServer = dtServer
End Sub
Private Sub Form1_Load(sender As Object, e As System.EventArgs) Handles Me.Load
Label2.Text = gl_FomCode
Label3.Text = gl_FormName
End Sub
End Class
【问题讨论】:
-
你能更好地解释一下你在这里想要实现的目标吗? :)