HighTechTalks DotNet Forums  

Should I derive from Form, CommonDialog or Component?

Dotnet Academic General Discussions microsoft.public.dotnet.academic


Discuss Should I derive from Form, CommonDialog or Component? in the Dotnet Academic General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Adam Ralph via .NET 247
 
Posts: n/a

Default Should I derive from Form, CommonDialog or Component? - 06-18-2004 , 04:59 AM






I am writing a library to assist with creation of an IRC bot.

One of the classes I am using is a Listener (fromhttp://thresher.sourceforge.net), which listens to the IRCconnection and raises events when messages are recieved.

I would like to create a new class in my library, ListenerWindow,which can have a Listener passed to it, and will display a formwhich displays the text of messages as they arrive. Rather thanderive this class from a Form, I think I would rather have anInternal Form class and have the ListenerWindow call thisinternally. It has also been suggested that ListenerWindowshould derive from Component or even CommonDialog but I don'tknow if this is really suitable or not.

Can anyone comment on the above architecture and suggest what thebest design would be?

Many thanks,

--------------------------------
From: Adam Ralph

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>8I4Zp+Yo7E6YBDLluyth6w==</Id>

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.