DLL Newby Questions...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I had to convert a Win32 EXE project with some forms and classes into a DLL Project.
When I instace the new DLL project from a test program I see all forms and classes...
There is any way to just see one class, for example some forms and classes are only private and only one is public.

I have a method in one DLL class that opens a form.
I need to pass a ref variable to that form. there is any way to do this?
Example: Form OForm = new frmTest();
OForm.Show(I need to pass a ref variable);


Thanks for your help,
Bernardo
 
Bernardo said:
I had to convert a Win32 EXE project with some forms and classes into
a DLL Project. When I instace the new DLL project from a test program
I see all forms and classes... There is any way to just see one class,
for example some forms and classes are only private and only one is
public.

Just declare all the other classes as internal - in fact, just leaving
out the modifier entirely will always make whatever you're declaring as
private as makes sense, in C#, which I love.
I have a method in one DLL class that opens a form.
I need to pass a ref variable to that form. there is any way to do this?
Example: Form OForm = new frmTest();
OForm.Show(I need to pass a ref variable);

Why not pass it to the constructor instead? I'm not really sure of what
you're after here. You also need to be clear about the difference
between a reference type variable, and passing a parameter by
reference. See http://www.pobox.com/~skeet/csharp/parameters.html
 
Back
Top