[[VisualBasic.NET]]

* Refrection [#j3f4f683]
VB6のCreateObjectに相当する機能。Refrectionというらしい。

     Dim asm As System.Reflection.Assembly
     Dim objForm As base.frmBase
 
     asm = Reflection.Assembly.LoadFrom(”呼び出すDLLのパス.dll”)
     objForm = asm.CreateInstance(”ネームスペース.クラス”)
 
     objForm.Run

- dll名とクラス名は大文字小文字を正確に記述しないとエラーになる。

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS