saya menggunakan vb.net tapi masih pemula dan kebetulan modul yg saya
buat error.
ini error yg muncul :
Exception has been thrown by the target of invocation

say membuat sebuah menu utama, yang didalamnya saya menggunakan 
assembly.loadform untuk memanggil modul yang sudah jadi .dll
saya sudah membuat 5 modul , dari modul 1 s/d 4 sudah bisa di panggil
dg loadform, pada saat modul yg ke 5 error tersebut.
modul satu s/d empat hanya berisi satu window untuk aplikasi master.
di modul yg kelima saya buat satu window untuk aplikasi input detil
yang didalamnya ada beberapa window2 lagi.

semua file dll yang saya panggil ditaro di satu directory d:\bin

ini contoh script untuk memanggil dll yg saya taro di d:\bin

Private Sub CallApp(ByVal AppCaption As String, ByVal FileName As
String, ByVal TypeName As String)
        Try
            Dim formAsm As [Assembly] = [Assembly].LoadFrom("d:\bin\"
& FileName)
            Dim formType As Type = formAsm.GetType(TypeName)
            Dim FormObj As Object = Activator.CreateInstance(formType)
            Dim _form As Form = CType(FormObj, Form)
            _form.Text = AppCaption
            _form.FormBorderStyle = FormBorderStyle.None
            _form.Dock = DockStyle.Fill
            Dim tpage As TabPage = New TabPage(AppCaption)
            tpage.Controls.Add(_form)
            TabControl1.Controls.Add(tpage)
            _form.Tag = Me.cs
            _form.Show()
        Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try
    End Sub

yang jadi pertanyaan saya apakah error tersebut karena pengaruh dari
banyaknya window yang saya buat di modul ke 5.

jika ada yang tahu, atau ada yang pernah error yg sama tolong bantu saya.
trims.

Andry 






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/k7folB/TM
--------------------------------------------------------------------~-> 

Untuk keluar dari millis ini, kirim email kosong ke:
[EMAIL PROTECTED]

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Programmer-VB/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Kirim email ke