|
-
Mar 13th, 2006, 12:37 AM
#1
Thread Starter
Lively Member
OO Question - Superclass / Subclass
Hi Everybody!
Im brand new to .Net and I've got to say Im lovin it so far!
Got a question though...
I have an MDI Child and I want to refer to it like so....
Private Sub DisplayForm(ByRef frm as System.Windows.Forms.Form)
{
}
I may be passing multiple different MDI children to this subroutine. When I turn on Option Strict it says it cannot perform an implicit conversion.
Please correct me but I was under the impression that OO polymorphism (Superclass <-> Subclass) would take care of this?
How would I delcare the subroutine so it could accept my child forms.
Thanks for your input.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|