Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

Creating a custom control library using theme base themes

Hi,

I'm trying to create a theme library file from Themebase and a sample theme (say, flowtheme). In that way, I need not to add the files everytime and simply inserting the dll into the toolbox will make it available for all projects.

I tried to create as custom control library (.dll) but when I'm trying to load the dll in toolbox, it says, "There are no components that can be placed in the toolbox".

How can I achieve that as dll file?
class Theme : ContainerControl
class Control : Control
(Apr 24, 2013 10:41 AM)C3ol Wrote:  class Theme : ContainerControl
class Control : Control

Thanks, but I've build with

Code
class FlowThem: ThemeContainer
class ThemeContainer: ContainerControl

And it compiles without any error.

As per your suggestion,
I tried
class ThemeContainer: Control

this end up in error ParentForm.

If I change like
class FlowTheme: Control

this gives Error'FlowTheme.ColorHook()': no suitable method found to override

Thus I believe my previous settings are fine.
if u use themebase but for regular use mine
(Apr 25, 2013 02:42 AM)C3ol Wrote:  if u use themebase but for regular use mine

Thanks. But the question is about making a control based on themebase components.
u need to create UserControl to use it as control
to use ur dll u need to load it and call
Can you give me a sample snippet?
I'm new to this so need more info.
Hello, Anybody help here?

Still looking for it.
open new winform project add class past the code change all the classes to public delete the form change the application type to class lib
Enjoy
(Apr 30, 2013 12:21 AM)C3ol Wrote:  open new winform project add class past the code change all the classes to public delete the form change the application type to class lib
Enjoy

Same result. "No components that can be placed in toolbox"
u need to drag the dll too the control box or right click on the control box and choose item
It's no difference then loading my other custom libraries. i.e I've a library to change Groupbox border and I loaded into toolbox using the same way. So I don't think it's a problem.
well if u dont want to do it as i say what i can do
i test it and its work .
(Apr 30, 2013 06:21 AM)C3ol Wrote:  well if u dont want to do it as i say what i can do
i test it and its work .

Give me your project folder. I'll see what I miss.
i delete it and its vb project just do what i tell u and it will work


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by AshlanfoxSep 24, 2026 09:52 AM 115 41,400 Sep 24, 2026 09:52 AM
Last Post: Anonynuk
[C#] by ZettabitMar 5, 2023 12:30 AM 7 1,162 Mar 5, 2023 12:30 AM
Last Post: NULL STERN
[.NET] by xNeaplesDec 30, 2020 09:16 PM 38 2,743 Dec 30, 2020 09:16 PM
Last Post: Atabey27