PC Review


Reply
Thread Tools Rate Thread

class library problem

 
 
glenn
Guest
Posts: n/a
 
      15th Mar 2005
I am assuming that Microsoft has renamed their (dll's) and are now calling
them class libraries since I can't find anything related to dll's in Visual
Studio. If I am correct in this assumption then can anyone help me with how
to have my class library display a MessageBox.Show. I can't seem to add the
proper using statement to get access to that class.

Can dll's access messageboxes?

On a side note: Is is possible for a class library/dll to open a windows
form?

I am new to VS but am very familiar with the old dll and windows stuff so
not quite sure why this is so difficult...

Thanks,

glenn


 
Reply With Quote
 
 
 
 
Brendan Grant
Guest
Posts: n/a
 
      15th Mar 2005
Within the .NET world, the common name for .NET dll's is
assembly and you add a reference to an assembly from your
own application/assembly/etc to access the
classes/functions/etc within it.

MessageBox.Show() is part of the System.Windows.Forms
namespace, so you would have to include a reference to the
System.Windows.Forms.dll assembly.

It is possible to have a class library/dll open a windows
form. So long as the assembly you are opening it from has
access to it (either in the same assembly or another one),
you would open it just as you would from another window or
console app (provided you are referencing
System.Windows.Forms)

>-----Original Message-----
>I am assuming that Microsoft has renamed their (dll's)

and are now calling
>them class libraries since I can't find anything related

to dll's in Visual
>Studio. If I am correct in this assumption then can

anyone help me with how
>to have my class library display a MessageBox.Show. I

can't seem to add the
>proper using statement to get access to that class.
>
>Can dll's access messageboxes?
>
>On a side note: Is is possible for a class library/dll

to open a windows
>form?
>
>I am new to VS but am very familiar with the old dll and

windows stuff so
>not quite sure why this is so difficult...
>
>Thanks,
>
>glenn
>
>
>.
>

 
Reply With Quote
 
glenn
Guest
Posts: n/a
 
      15th Mar 2005
Well, that is what I figured as well, however, its not obvious how to do
what you are telling me. If I click on the references and tell it to add a
reference, there is no such item to add. If I manually go to the top of my
unit and just add the using statement for System.Windows.Forms it tells me
it doesn't exist.

It looks like because I'm in an assembly I loose access to that part of the
system. So how do I get it to add properly so I can use it?

Thanks,

glenn

"Brendan Grant" <(E-Mail Removed)> wrote in message
news:05e901c52975$e6c882e0$(E-Mail Removed)...
> Within the .NET world, the common name for .NET dll's is
> assembly and you add a reference to an assembly from your
> own application/assembly/etc to access the
> classes/functions/etc within it.
>
> MessageBox.Show() is part of the System.Windows.Forms
> namespace, so you would have to include a reference to the
> System.Windows.Forms.dll assembly.
>
> It is possible to have a class library/dll open a windows
> form. So long as the assembly you are opening it from has
> access to it (either in the same assembly or another one),
> you would open it just as you would from another window or
> console app (provided you are referencing
> System.Windows.Forms)
>
> >-----Original Message-----
> >I am assuming that Microsoft has renamed their (dll's)

> and are now calling
> >them class libraries since I can't find anything related

> to dll's in Visual
> >Studio. If I am correct in this assumption then can

> anyone help me with how
> >to have my class library display a MessageBox.Show. I

> can't seem to add the
> >proper using statement to get access to that class.
> >
> >Can dll's access messageboxes?
> >
> >On a side note: Is is possible for a class library/dll

> to open a windows
> >form?
> >
> >I am new to VS but am very familiar with the old dll and

> windows stuff so
> >not quite sure why this is so difficult...
> >
> >Thanks,
> >
> >glenn
> >
> >
> >.
> >



 
Reply With Quote
 
glenn
Guest
Posts: n/a
 
      15th Mar 2005
Nevermind, I exited VS and restared and now I have the windows reference
that I can add. Sorry, not sure why I had to restart it but it at least is
working now...

Thanks,

glenn


"Brendan Grant" <(E-Mail Removed)> wrote in message
news:05e901c52975$e6c882e0$(E-Mail Removed)...
> Within the .NET world, the common name for .NET dll's is
> assembly and you add a reference to an assembly from your
> own application/assembly/etc to access the
> classes/functions/etc within it.
>
> MessageBox.Show() is part of the System.Windows.Forms
> namespace, so you would have to include a reference to the
> System.Windows.Forms.dll assembly.
>
> It is possible to have a class library/dll open a windows
> form. So long as the assembly you are opening it from has
> access to it (either in the same assembly or another one),
> you would open it just as you would from another window or
> console app (provided you are referencing
> System.Windows.Forms)
>
> >-----Original Message-----
> >I am assuming that Microsoft has renamed their (dll's)

> and are now calling
> >them class libraries since I can't find anything related

> to dll's in Visual
> >Studio. If I am correct in this assumption then can

> anyone help me with how
> >to have my class library display a MessageBox.Show. I

> can't seem to add the
> >proper using statement to get access to that class.
> >
> >Can dll's access messageboxes?
> >
> >On a side note: Is is possible for a class library/dll

> to open a windows
> >form?
> >
> >I am new to VS but am very familiar with the old dll and

> windows stuff so
> >not quite sure why this is so difficult...
> >
> >Thanks,
> >
> >glenn
> >
> >
> >.
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Using VB.net Class Library DLL in VBScript =?Utf-8?B?QnJpYW4gS3VkZXJh?= Microsoft VB .NET 9 27th Nov 2007 10:08 AM
Class library problem =?Utf-8?B?QXJpc3RlaWRpcyBCYW1wYWtvcw==?= Microsoft Dot NET Compact Framework 1 10th Oct 2006 12:53 AM
Problem Invoking a .net dll (Class Library - com+) shanmani Microsoft ASP .NET 2 12th Jun 2006 02:06 AM
Bluetooth API in Class Library - problem funitsu Microsoft Dot NET 0 12th Feb 2005 04:38 PM
Problem: Class Library Matthew Microsoft C# .NET 1 7th Jul 2003 05:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:18 AM.