Question:

Importing class files in c#

by  |  earlier

0 LIKES UnLike

I create a windows form class in my project and I want to import the files to use that frame in an another frame class. I actually want to add a login box to my program, but c# does't support inputBox. so I found an inputBox class from "http://csharp.wikia.com/wiki/InputBox_F... and I want to use it in my program. How can I use it? I am new in c# so if you tell me how to add it step by step, it would be better.

 Tags:

   Report

1 ANSWERS


  1. Ok this is a User control Library,

    Ok I suppose you are using either Visual Studio or Visual C# Express Edition.

    On your solution Explorer, right click the solution name click Add reference (not web reference), then browse to the .dll file you downloaded (Dynamic Linked Library). Visual Studio will automatically refresh the tool box for you.

    If not go, right click the tool box click chose items, browse again to your dll, then click the classes you wanna add, this will enable you drag and drop feature of visual studio.

    In you class files *.cs type this (in the file header : using <the_namespace_of_your_assembly>;).

    Now you are ready to use your assembly/library/dll you downloaded.

    Notice that a login box is a TextBox, that is already exiting in the .net framework, so ready to use in visual studio.

    If you are asking this question I suppose you are using SharpDevelop or something like, I advice you to go download at least the Express Edition of Visual Studio that's better, productivity and much more, you will also avoid all these problems.

    Have a nice day.

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions