open a .net 2003 form from .net 2002

tirtsa

New member
Joined
Jul 1, 2003
Messages
3
i created a dll containing a form in vb.net 2003.
i reference this dll from a vb.net 2002 project, and create a new instance of the form.
the problem starts when im trying to show the form. i get an error "object already exists"

can i do such a thing at all? what is this problem? any ideas?
 
How are you creating / displaying the form?
Also what version of the .Net runtime are you targeting with the VS 2003 form?
It could be a problem with the DLL requiring the 1.1 runtime and the project using version 1.0 framework.
 
i create a new instance of the form, and then try to display it using Form.Show method.

i also tried to use Form.ShowDialog, and i got "Source array type cannot be assigned to destination array type".

how can i determine the version of .Net Runtime im targeting?
 
hehe no problem follow these instructions and youll be all set:

first, add the files to your project manually(by creating a blank vs app, right click on sol. explorer, add existing items)

2)In the sln file - Change File Version 8.00 to 7.00

3)In the vcsproj file - Change ProductVersion 7.10.2215 to 7.0.9466 and Schema Version 2.0 to 1.0
 
Back
Top