>>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
If your Dim work, That meen that your object is reconise by the "Type Library". Now if your unable to Make a new on it,
Eider in
Dim MyProperty as new fournier.maforme
Or
Set MyPreperty = new fournier.maforme
That meen that your form is propably "Public non createble".
To Fix that, if is the problem, you need to have a other class in your server that create the instance of that class.
That class as to be "MultiUse".
Ex.:
In The server Fournier:
Class maforme
end class
Class Master
Public Function CreateMaForme() as MaForme
Dim X as new maForme
CreateMaForme = X
End Cass
In Your Application :
Dim XYZ as new Fournier.Master
Dim MyProperty As fournier.maforme
Set MyProperty = XYZ.CreateMaForme()
Nicolas Bastien
President de Point EXE informatique inc.
President du Groupe Visual Basic Montreal
Email :
pointexe@ergonet.comInfo : (514) 522-3255