hlove4u 0 Newbie Poster

Can someone with LATE BINDING idea help me out in my VB.NET Project. Im working on an MDI (multople Doc Interface) project with some toolstrip buttons on my parent form (my menu form) from where I need to call some public procedures (like DELETEREC, UPDATEREC, CloseForm and so on) on childforms as they are being activated.

This is what I have done that don't seem to work. it works well in my VB6 projects.

In my project module, frm is declared Public as form object

Public frm as system.windows.form().form

Im my childforms i want as soon as the forms are load, activated or have focus, should instanciates or create the form object in my frm.

Private Sub frmCategory_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Activated
Dim frm As New frmCategory
End Sub[

while in my menu or main form (parent form) with toolstrip buttons, this actually where all individual forms are called.

Private Sub ClsForm_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

frm.CloseForm()

End Sub

and it's flaging an error there

frm.CloseForm is not a member of System.Windows.Forms().Form

and ofcourse frm being a late binding type may not have all the Public Method on it. pls, is there any one with a better idea or get-around, I will highly appreciate it
Thanks