HELP!!! still no useable answer on deploying

  • Thread starter Thread starter Frank
  • Start date Start date
F

Frank

Hello,
I already asked twice, but nobody seems to know the correct answer. Maybe
the solution is so simple that you outthere think thats such a stupid
question, I'm not going to answer it. In that case, please do it anyway and
explain it like you do to a baby. Step by step, keystroke by keystroke.
This is what I want:

I have a formA and classB which I want to wrap into a component so my
fellowworkers can use the formA in their main applications. ClassB must not
be visible.
How do I do this? I can only find info about deploying complete
applications, but this is just a subform and a class. I want my
fellowworkers to use my formA instead of a standard form. And they must be
able to see the intellisense info when using the formA. They must not be
able to see the code of formA and classB
Thanks
Frank
 
Create a Class Library Project and put your wrapped form in this, Then you
can redistribute that DLL.
 
can you not just create the form & class compile it into a dll, and then
allow your user's to user it as an inherited form? that way they wont see
the code
 
Hi,

Create a Class Library Project;
In your project, create your formA and declare it as Public;
In the same project, create your classB and declare it as Friend;

Compile and give the dll to your fellowworkers;

Is it clear?

Regards
 
Frank,
Maybe
the solution is so simple that you outthere think thats such a stupid
question,
Personally I think its more a case of seeing the forest for the trees. :-)
I have a formA and classB which I want to wrap into a component so my
fellowworkers can use the formA in their main applications. ClassB must not
be visible.

1. Create a new Class Library project
2. Add a New Form to the project, leave the visibility (accessibility) of
the Form Public

Public Class formA
Inherits System.Windows.Forms.Form

3. Add a New Class to the project, change the visibility of the Class from
Public to Friend

Friend Class classB

Compile the above Class Library, Deploy above Class Library. Your follow
workers can reference the created Class Library to use the form.

For details on Public, Private, Friend, Protected, & Protected Friend see:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcn7/html/vbconAccessibility.asp

Hope this helps
Jay
 
Finally some good answers, thank you very much.
But, could it be that a Class Library project is not available in a standard
VB.Net environment? That one needs the professional version?
Thanks
Frank
 
Frank,
Correct, you "need" the professional version to create Class Libraries.
Seeing as you have "fellow workers" I would recommend upgrading to the
Professional or Enterprise edition of VS.NET.


I find Standard edition more appropriate for home/casual users. There is a
method of creating a Class Library in the Standard edition, however I don't
have the link handy.

Hope this helps
Jay
 
Back
Top