hi all,
i created an Interface named IChildCommands.
implemented this in my form.
when executing procedures of this interface, i use
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.Code:DirectCast(Me.ActiveMdiChild, IChildCommands).Something
i want to do something like
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.Code:Dim mychild As New Object = DirectCast(Me.ActiveMdiChild, IChildCommands)
please help.
thanks.




Reply With Quote