Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / February 2004

Tip: Looking for answers? Try searching our database.

Opening an app with a class as an argument in .Net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robin - 19 Feb 2004 22:21 GMT
Hi

I was looking to pass a class as an argument to a secondary program.  Basically program 1 is a menu holding certain core variables and any item selected from the menu runs on its own but needs certain values that I hoped to contain in a class.  A subquestion would be under what would I build the called program.  In 6 I know it would be a DLL but is the equivlant a windows control library?

Thanks,
Robin
Eric Cadwell - 20 Feb 2004 20:35 GMT
Does it need to be it's own process? If it's it's own process you create
another EXE (windows application) but this would make transferring the data
a matter of serialization and deserialization. That would involve remoting
or XML.

Alternatively, you can build sub-forms in a DLL (control library or class
library) and display them from the main EXE. The EXE just references the DLL
and has access to any public classes. A control library is just a class
library with a few extra dependencies (System.Windows.Forms,
System.Drawing). The output type of an assembly is determined by a compiler
switch and can be changed in VS.NET via the project properties. You can go
back and forth between EXE and DLL, if you so choose.

HTH;
Eric Cadwell
http://www.origincontrols.com

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.