VisualBasic.NET

Refrection

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
Last-modified: 2007-05-22 (火) 21:03:27 (6177d)