|
Hello this is my first time using MSDN forum I hope someone may be answer this question for me
I have rather a big code that is currently broken into 5 moduels
Main Form FormA FormB FormC FOrmD
Instead of copying and pasting the FormA into Main Form, I was hopeing I could either, copy the exe files INTO the Main Form or link it's locations using process.start(Location)
However, I am hoping to embed it into Main Form, instead of opening a new Form. Furthermore, is it also possable to, as I start up a process, send 2 parameters from Main Form to FormA, B, C or D? (its just string, like UserName and password for example)
Or, is there an easier way to solve this problem? please let me know, for I tried to copy and paste it at first but I have realized it may require a lot of unique name changing and some User Controls cannot be copied, and has to be remade (it copies it blank)
Thanks again Regards Taehoon Andrew Kim
| | AndyKim Friday, August 10, 2007 4:52 AM | You can convert your modules other than main into their own ClassLibraries (*.dll), Which can be referenced from the main module. It will allow you you to do all your requirments | | Muthu Krishnan. R Friday, August 10, 2007 5:43 AM | Hi AndyKim,
To create a Class Library, take the following steps:
- Launch Visual Studio 2005.
- From the File menu, select New, and then click Project.
- In the New Project dialog box, select a language folder for C# or Visual Basic from the Project Types list.
- From the Templates list, click Class Library.
- In the Name field, enter one name for the project:
- Click OK.
-
Add your FormA,B,C or D to this project.
-
In your Main Formproject, add a reference to this Class Library.
Hope this helps.
Regards | | Rong-Chun Zhang Monday, August 13, 2007 5:40 AM | Project + Properties, Application tab, change Output Type to "Class Library". Delete Program.cs from your project. | | nobugz Monday, August 13, 2007 2:06 PM | You can convert your modules other than main into their own ClassLibraries (*.dll), Which can be referenced from the main module. It will allow you you to do all your requirments | | Muthu Krishnan. R Friday, August 10, 2007 5:43 AM |
thanks for the reply, I'm kind of new to c# programming so I was wondering if you could help me out with one more question
How can I create dll file for FormA? in c# Visual c# .NET
and will this work just like exe files? like all the other related references and user controls will also work in dll just like as if I am calling exe file. thanks.
if there is any good site with dll tutorial, please let me know. thanks again
| | AndyKim Friday, August 10, 2007 2:07 PM | Hi AndyKim,
To create a Class Library, take the following steps:
- Launch Visual Studio 2005.
- From the File menu, select New, and then click Project.
- In the New Project dialog box, select a language folder for C# or Visual Basic from the Project Types list.
- From the Templates list, click Class Library.
- In the Name field, enter one name for the project:
- Click OK.
-
Add your FormA,B,C or D to this project.
-
In your Main Formproject, add a reference to this Class Library.
Hope this helps.
Regards | | Rong-Chun Zhang Monday, August 13, 2007 5:40 AM | hi rong-chun, there seems to be a small problem with making a new project, I was wondering if you could
help me with this issue
I am using few User Control DataGrid as well as some references from other files, so if I try copy and paste the form, then few of the controls become missing (does not get copied) and this seems to be quite a work unfortunatly.
I was wondering if it is possable to convert to dll from the normal project file or change the exe file to dll file.
thanks for the help
regards
AndyKim | | AndyKim Monday, August 13, 2007 1:16 PM | Project + Properties, Application tab, change Output Type to "Class Library". Delete Program.cs from your project. | | nobugz Monday, August 13, 2007 2:06 PM |
wow thanks.
i'm kind of new to using reference
do you happens to know how to
usethe project reference in another form?
i'd like toload the project reference on the form display.
I'd originally tried to do it by calling .exe but
someone told me to use .dll
hense, im a bit confused on how to actually display it on the form
the project reference also has interface, and what I want to do is,
display that interface in a given space, (similar to drag and drop a textbox)
thanks | | AndyKim Monday, August 13, 2007 3:37 PM |
|