Thread View: borland.public.csharpbuilder.winforms.controls.writing
1 messages
1 total messages
Started by Dominique Louis
Wed, 30 Nov 2005 11:23
Inheriting from UserControl...
Author: Dominique Louis
Date: Wed, 30 Nov 2005 11:23
Date: Wed, 30 Nov 2005 11:23
24 lines
1955 bytes
1955 bytes
Hi, Wow this groups is quiet... Anyhoo, I'm trying to create a C# composite control and have inherited from UserControl. This new control contains 9 buttons with images on them ( no text ). Firstly, what is the best way to expose these 9 buttons to the developers who will be using my control. I want them to be able to change visibility, enablement, onClick etc for each button, but not be able add any new buttons. I initially thought of exposing them as some kind of fixed array, but wanted the opinions of those with more experience. In the case of an array or collection, what is the correct way of exposing this so it can be customised via the object inspector. Secondly, if I want a specific icon/bmp to appear in the ToolBox for my component, where must this icon/bmp be stored. I know I need to use ToolboxBitmap(typeof(MyComponent), "MyComponentBitmap") attribute, but can this exist in an image list or should it be placed somewhere else? Thanks, Dominique
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads