Advertisement
2_2002-2004 Files/ File Controls/ Input/ Output #130468

A simple line of code to load a form using its name.

This code is helpful if you want to load a form by passing its name as parameter. rating is expected ;-)

AI

AI 摘要: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

源代码
original-source
Private Sub showForm(ByVal frmName As String)
Dim frm As Form
frm = AppDomain.CurrentDomain.CreateInstanceAndUnwrap(Me.GetType.Assembly.GetName.Name, System.String.Concat(Me.GetType.Assembly.GetName.Name, ".", frmName))
    frm.Show()
End Sub
原始评论 (3)
从 Wayback Machine 恢复