>>You could declare your variable as
>>
>> Dim MyProperty as MyServer.MyFormClass
>>
>>And you could direcly instiance your object by using :
>> Dim MyProperty as new MyFormClass
>>Or
>> Dim MyProperty as new MyServer.MyFormClass
>
>I can now execute the dim line. However, the set line returns "Invalid use of New keyword".
>
>Dim MyProperty As fournier.maforme
>Set MyProperty = New fournier.maforme
That meen that your class is public non-creatable.
Nicolas Bastien
President de Point EXE informatique inc.
President du Groupe Visual Basic Montreal
Email :
pointexe@ergonet.comInfo : (514) 522-3255