Home All Groups Group Topic Archive Search About

Creating Forms from a common routine

Author
4 Oct 2006 1:57 PM
DaveG
Hi All

Vb 2003

I am working on a project which uses multiple forms (MDI). I am hoping
to use a common routine to launch most of the forms.

The problem I have is that I cannot get a BaseClass variable.

Public Sub FormsLauncher(Byval fn as Form, Byval bc as ???)

    fn = New bc

End Sub

Is this possible or should I just get used to writing a new routine for
each BaseClass.

Thanks in advance

--
DaveG
------------
If things don't change...
They will stay the same.

Author
4 Oct 2006 9:49 PM
tomb
Isn't Form the base class?

T

DaveG wrote:

Show quoteHide quote
>Hi All
>
>Vb 2003
>
>I am working on a project which uses multiple forms (MDI). I am hoping
>to use a common routine to launch most of the forms.
>
>The problem I have is that I cannot get a BaseClass variable.
>
>Public Sub FormsLauncher(Byval fn as Form, Byval bc as ???)
>
>    fn = New bc
>
>End Sub
>
>Is this possible or should I just get used to writing a new routine for
>each BaseClass.
>
>Thanks in advance
>

>