Forms class

NekoManu

Regular
Joined
Jul 23, 2004
Messages
75
Location
Belgium
I have a project with myForm. This form is based on a form and uses the icon of the parent form.

I also have a project soReport. In this Project I want to create a form based om myForm.

In my application I do the following:
Code:
myForm dlgMyForm = new myForm();
dlgMyForm.showDialog();

When I run the application I get a warning that there is no user code and such, and the code in myForm does NOT work.

Can anyone explain to me what I'm doing wrong and how it should be done?
 
That works if my form is in the same project as the rest.

What I want to do is create a form in a separate project and then call it from another project.
 
NekoManu said:
That works if my form is in the same project as the rest.

What I want to do is create a form in a separate project and then call it from another project.
add the forms project to the referneces and then import in your module
 
I did add the project to the references and added the project to my solution, but when I call the form, the code is not executed.
 
The thing is that it works when I open it (the project) in the solution in which the baser form is. If I open the project in a different solution it does not work.

Very strange, but then again it is Microsoft
 
Back
Top