Click here to Skip to main content
15,891,864 members
Home / Discussions / C#
   

C#

 
GeneralRe: Printing a Form not using image in .NET? Pin
MohammadAmiry4-Apr-06 0:51
MohammadAmiry4-Apr-06 0:51 
QuestionIsInputKey override and ding sound Pin
CiNN3-Apr-06 1:09
CiNN3-Apr-06 1:09 
AnswerRe: IsInputKey override and ding sound Pin
Robert Rohde3-Apr-06 3:44
Robert Rohde3-Apr-06 3:44 
GeneralRe: IsInputKey override and ding sound Pin
CiNN3-Apr-06 12:06
CiNN3-Apr-06 12:06 
GeneralRe: IsInputKey override and ding sound Pin
MohammadAmiry4-Apr-06 1:22
MohammadAmiry4-Apr-06 1:22 
GeneralRe: IsInputKey override and ding sound Pin
Vobulator2-Apr-10 4:41
Vobulator2-Apr-10 4:41 
GeneralRe: IsInputKey override and ding sound Pin
Vobulator2-Apr-10 5:14
Vobulator2-Apr-10 5:14 
QuestionCan't find a class library dll in design mode Pin
Tony_Joh3-Apr-06 1:08
Tony_Joh3-Apr-06 1:08 
Hello!

I have one solution file that consist of three project.
One project that build a user control dll. In this user control we have a class called B
One project that build a class library dll. In this class library we have a class called C

In the user control project I have a project reference to the class library. I build the user control dll and this class library successfully.

This user control dll is added to the Toolbox. In the constructor for this class B is a call to instansiate a class C in the class library.

When I add this user control to the Toolbox I use directory obj/debug to select the user control dll. So adding the user control works fine.

When I drag this user control from the Toolbox into a form that exist in the project that build the exe file object B will be instansiated and another object which is class C will also be instansiated that exist in the class library. Like this.
public B()
{
InitializeComponent();
Last.C last = new Last.C();
last.foo();
}

In design mode when we want to design a form that exist in the project that build the exe file
we have one dependency the user control is dependent of the class library because an instance of class C will be instansiated as I mentioned before.

Now to my problem when I try to drag the user control from the toolbox into a form that exist in the project that build the exe file which search path is used to locate the class library dll because I get this error
"An exception occured while trying to create an instance of
WindowsControlLibrary.B. The execption was "?"." probably because the class library can't be found.

Where should I look and what should I do?
I'm rather new to using user control dll and class library.

One more additional information is when I drag the use control into a form a get the error message and at the same time two references are added which is the class library dll and the user control dll
If I look at the reference path for the class library that was added I
discover that my class library exist in this directory.
If I look at the reference path for the user control library that was added
I discover that my user control library exist in this directory. The two added reference path are the same.

//Tony


QuestionHosting an ASP.NET runtime..... Pin
daviiie3-Apr-06 1:08
daviiie3-Apr-06 1:08 
Questionform window always on Pin
CoolASL3-Apr-06 0:31
CoolASL3-Apr-06 0:31 
AnswerRe: form window always on Pin
MohammadAmiry4-Apr-06 0:56
MohammadAmiry4-Apr-06 0:56 
GeneralRe: form window always on Pin
CoolASL4-Apr-06 1:01
CoolASL4-Apr-06 1:01 
QuestionImage Details from gallery display Pin
cybersurferdev2-Apr-06 23:12
cybersurferdev2-Apr-06 23:12 
QuestionProcessStart and Security ?? Pin
Sandrina2-Apr-06 22:50
Sandrina2-Apr-06 22:50 
AnswerRe: ProcessStart and Security ?? Pin
Colin Angus Mackay2-Apr-06 23:12
Colin Angus Mackay2-Apr-06 23:12 
GeneralRe: ProcessStart and Security ?? Pin
Sandrina2-Apr-06 23:22
Sandrina2-Apr-06 23:22 
GeneralRe: ProcessStart and Security ?? Pin
Colin Angus Mackay2-Apr-06 23:28
Colin Angus Mackay2-Apr-06 23:28 
GeneralRe: ProcessStart and Security ?? Pin
Sandrina2-Apr-06 23:39
Sandrina2-Apr-06 23:39 
QuestionOverriding UserControl.Enabled Pin
livez2-Apr-06 22:43
livez2-Apr-06 22:43 
AnswerRe: Overriding UserControl.Enabled Pin
Robert Rohde2-Apr-06 22:49
Robert Rohde2-Apr-06 22:49 
GeneralRe: Overriding UserControl.Enabled Pin
livez2-Apr-06 22:51
livez2-Apr-06 22:51 
GeneralRe: Overriding UserControl.Enabled Pin
livez3-Apr-06 4:25
livez3-Apr-06 4:25 
QuestionDrag adn Drop mini form Pin
Fr2351662-Apr-06 22:25
Fr2351662-Apr-06 22:25 
AnswerRe: Drag adn Drop mini form Pin
Robert Rohde2-Apr-06 22:46
Robert Rohde2-Apr-06 22:46 
QuestionReading data From Ports Pin
V.2-Apr-06 22:22
professionalV.2-Apr-06 22:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.