Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
GeneralRe: IExtenderProvider Pin
mike montagne27-Feb-07 8:44
mike montagne27-Feb-07 8:44 
GeneralRe: IExtenderProvider Pin
mike montagne27-Feb-07 8:46
mike montagne27-Feb-07 8:46 
GeneralRe: IExtenderProvider Pin
mike montagne27-Feb-07 8:55
mike montagne27-Feb-07 8:55 
GeneralRe: IExtenderProvider Pin
mike montagne27-Feb-07 8:58
mike montagne27-Feb-07 8:58 
GeneralRe: IExtenderProvider Pin
Scott Dorman1-Mar-07 15:39
professionalScott Dorman1-Mar-07 15:39 
GeneralRe: IExtenderProvider Pin
mike montagne1-Mar-07 16:25
mike montagne1-Mar-07 16:25 
GeneralRe: IExtenderProvider Pin
Scott Dorman1-Mar-07 16:58
professionalScott Dorman1-Mar-07 16:58 
GeneralRe: IExtenderProvider Pin
mike montagne1-Mar-07 17:25
mike montagne1-Mar-07 17:25 
Scott Dorman wrote:
I know that feeling. After I integrated this code in with the rest of the component, my RTL handling stopped working correctly. It displays fine at run-time but not at design time. That's my task for tomorrow morning...figure out what broke between the simple LabelProvider class and the more extensive class that will be used in the application.


In my case I can say this... there was a lot of experimenting I had to do, and, in the end, I can see why they want you to do things the way I found you had to do them. It was way too painstaking though to have to solve these wee little, almost unexplainable issues, until, one after another, you have every little detail worked out (which of course is something you have to do anyway), and finally the misbehavior goes away. What I think is going on is there are many conditions which are not handled -- which just fall through the cracks without upsetting anything -- and you *could* go on developing a bad component if you aren't a perfectionist. But it's way more difficult to get there sometimes, and that's really too irresponsible of them for my tastes. I don't like being a guinea pig, when my work is better than theirs is!

Smile | :)

I would bet that your situation is the same... that you are going to have to chase out some things which really aren't necessarily the wrong way to do something, and which are in keeping with the language specs, but which somebody didn't decide to support in a bullet proof way.

It's pretty esoteric material to ponder, when you find after too many days work that you can't fire accessors in a class property supported by a TypeConverter -- and that you can only declare DefaultAttributes on the accessors of the inner property class.


Scott Dorman wrote:
The only thing I don't have working that I would like to is support for an ImageList (actually the ImageKey and ImageIndex properties specifially) for the label itself. That and figuring out how to make the property grid realize the additional Font property on the extended control already has it's default value. (It does the right things, it just displays it in bold showing that it has changed from the default when it really hasn't.)


It looks like we're covering a lot of the same ground with our projects. I looked at ImageList and decided I wanted to handle my graphics myself. It turned out this was even easier than I anticipated. Most of this C# has been (for which too it should be praised). I'm glad I did it the way I did now. The only quirk I ran into is I found that you can't (or I couldn't) create a null bitmap property, or allow anyone to assign null to a bitmap property. When they make the assignment, handle it in your accessor and if the assignment is null, create a new bitmap of size 1,1. Initialize the property to a new bitmap of 1,1 as well.

I know that an ImageList has one theoretical advantage -- that if you want to use an image multiple places, you can do so from the one instance as you can from a compiled, embedded resource. But I decided to let them do it that way if *they* want to, and to manage my images/glyphs myself. I'm happy with that as a solution.
GeneralRe: IExtenderProvider Pin
Scott Dorman2-Mar-07 4:15
professionalScott Dorman2-Mar-07 4:15 
GeneralRe: IExtenderProvider Pin
mike montagne2-Mar-07 7:32
mike montagne2-Mar-07 7:32 
GeneralRe: IExtenderProvider Pin
mike montagne2-Mar-07 7:41
mike montagne2-Mar-07 7:41 
GeneralRe: IExtenderProvider Pin
Scott Dorman2-Mar-07 5:25
professionalScott Dorman2-Mar-07 5:25 
GeneralRe: IExtenderProvider Pin
mike montagne2-Mar-07 7:53
mike montagne2-Mar-07 7:53 
GeneralRe: IExtenderProvider Pin
mike montagne2-Mar-07 8:07
mike montagne2-Mar-07 8:07 
GeneralRe: IExtenderProvider Pin
mike montagne27-Feb-07 7:26
mike montagne27-Feb-07 7:26 
GeneralRe: IExtenderProvider Pin
Scott Dorman27-Feb-07 7:58
professionalScott Dorman27-Feb-07 7:58 
GeneralRe: IExtenderProvider Pin
mike montagne27-Feb-07 8:09
mike montagne27-Feb-07 8:09 
GeneralRe: IExtenderProvider Pin
Scott Dorman27-Feb-07 8:11
professionalScott Dorman27-Feb-07 8:11 
GeneralRe: IExtenderProvider Pin
mike montagne27-Feb-07 8:22
mike montagne27-Feb-07 8:22 
GeneralABSTRACT ISSUES Pin
mike montagne27-Feb-07 7:56
mike montagne27-Feb-07 7:56 
AnswerRe: IExtenderProvider Pin
Pete O'Hanlon1-Mar-07 2:42
mvePete O'Hanlon1-Mar-07 2:42 
GeneralRe: IExtenderProvider Pin
Scott Dorman1-Mar-07 15:41
professionalScott Dorman1-Mar-07 15:41 
GeneralRe: IExtenderProvider Pin
Pete O'Hanlon1-Mar-07 22:39
mvePete O'Hanlon1-Mar-07 22:39 
GeneralRe: IExtenderProvider Pin
Scott Dorman2-Mar-07 5:25
professionalScott Dorman2-Mar-07 5:25 
QuestionReading A dataBase Smart Device C# Help Please Pin
BOND_JAMES26-Feb-07 3:33
BOND_JAMES26-Feb-07 3:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.