Groups | Blog | Home
all groups > c# > january 2008 >

c# : Provide subclassed win controls for plugins


Bob Powell [MVP]
1/26/2008 1:46:52 PM
Composite Application Block (CAB)


--
--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.


[quoted text, click to view]
Rotsey
1/26/2008 8:19:00 PM
Hi,

I am planning a win forms app that bascially has a shell
that has plugins to provide functionality.

I want to be able to create a library of subclassed
win form controls that I can control the font
colors etc so that when the app font is changed for
exmaple all controls in all plugins change.

So my question is should I allow the plugins
to refernece the control libary and pass to
the plugin the application properties.

Or

Provide a control service main app
to the plugin that would allow the
app to control application properties

What is the best way to do this?

rotsey


AddThis Social Bookmark Button