|
Hello. I have this custom label that derives from System.Windows.Forms.Label. It is an automatic-growing label but height-wise, not width-wise. I'm sure most of you have seen some code for this lying around. Anyway, the label functionality is working OK. I am now polishing it with a custom designer, but before I move on to the problems I am having with the designer, I must first need to solve an annoying problem: The AutoSize property value is being set to True in new instances of my label. I know that the standard Label control does this (changes AutoSize to true when dropped on a form), but I don't want this for my own label. Instead, I have defined that the default value AutoSize be False, while the default value for AutoSizeHeight be true. If I debug an instance of Visual Studio 2008, I see where the AutoSize setter is called with True, which in turn forces AutoSizeHeight to False; the problem is that there is nothing more in the call stack except for external code. I just want this to stop. Any pointers as to how I can stop this? MCP |