[RESOLVED] interface question
hi all,
i created an Interface named IChildCommands.
implemented this in my form.
when executing procedures of this interface, i use
Code:
DirectCast(Me.ActiveMdiChild, IChildCommands).Something
i'm trying to look for a way to pass DirectCast(Me.ActiveMdiChild, IChildCommands) to an object so that i wouldn't be typing it all each time i want to use it.
i want to do something like
Code:
Dim mychild As New Object = DirectCast(Me.ActiveMdiChild, IChildCommands)
but the above code is wrong and i only used object as an example. in reality, i have no clue what variable type to use for this.
please help.
thanks.