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

C#

 
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 
GeneralRe: IExtenderProvider Pin
Scott Dorman2-Mar-07 4:15
professionalScott Dorman2-Mar-07 4:15 
mike montagne wrote:
In my case I can say this... there was a lot of experimenting I had to do


I got lucky with finding this particular issue. As I was comparing code between the simple LabelProvider (which worked) and the one that didn't, the only difference was in my "remove" method (which runs when the extender is removed or the extendees handle is being recreated). In the one that worked, I had this line: this.label = null; while in the one that didn't I had this.label.Dispose();. Once I changed it, everything started working again. It would seem that in my cleanup I got a little too aggressive about making sure resources were being released.

I completely agree about needing to be a perfectionist to get this working correctly. I think the design capabilities of the runtime are incredibly powerful and equally as complicated. It seems like they had an idea that people would want to use it, but never really had time to completely finalize everything. So we are left with a lot of things that don't work *quite* right unless all of a certain set of conditions are met, and, of course, those conditions aren't fully documented anywhere.

mike montagne wrote:
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.


Absolutely. I've learned more details about how the Framework does things related to UI in the last two weeks than I have in several years...and all of it from trial and error.

I did implement the ability to set a single image to be associated with the label (same behavior as the normal Label control) and that works just fine, but I wanted the ability for the ImageList specifically so I could specify it in one place. For the UI that is being built that will use this component, that capability makes a lot of sense. I think everything was working properly, I just didn't have the nice design-time experience of being able to set the image using a dropdown that showed all of the images in the list (like the Label does).

I've found that there are a lot of things that are going on behind the scenes with the designer experience that don't exactly follow the model Microsoft is espousing for the rest of us.


-----------------------------
In just two days, tomorrow will be yesterday.

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 
AnswerRe: Reading A dataBase Smart Device C# Help Please Pin
Judah Gabriel Himango26-Feb-07 13:38
sponsorJudah Gabriel Himango26-Feb-07 13:38 

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.