Jump to content
Xtreme .Net Talk

Setsuko

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Setsuko

  1. @NK2000: Because I don't need a control. My component doesn't offer anything visual. Still, I have to be able to set it's properties with the property palette. I'm trying to create a small test-case that illustrates the problem in a more simplified way. I'll post it later.
  2. If you want to do this through the standard ToolTip control, unfortunately you have to wait until the Whidbey release later this year.
  3. @NK2000: The Component doens't :( A component is not a control. --- I want to get the parent, my component is placed on, because I need its type. So for instance, I want to if'm i'm placed on Form1, instead of System.Windows.Forms.Form. Through this type I can get the assembly and return data based upon datatypes inside the assembly. This works great by using the RootComponent type of the DesignHost, BUT.... The designhost returns a different RootComponentType during loading than after it. The down side is that I need to now the correct type during loading, because this is also the time GetList is called (by the databindings on the form) on my component.
  4. Can anyone help me with this one, I'm all out of ideas :( I have a custom Component deriving from Component. This component also implements the IListSource interface. The most important method I have to implement for this is GetList(); In the GetList method I need to obtain the parents type where my component is placed on. In this case a standard form derived from System.Windows.Forms.Form. I tried to do the following: IDesignerHost host = Site.Container as System.ComponentModel.Design.IDesignerHost; With the host I have now, I can get the RootComponent, BUT, and now comes the problem, the RootComponent is at that time the baseclass of the actual parent object. So I get System.Windows.Forms.Form instead of my derived parent class' type. I've discovered that this is because the designerhost is at that moment still in the loading state. The problem is that the GetList() is called before the loading state finishes and by the time the host is fully loaded, it it already too late, GetList isn't called again. Can anyone help me with this ? I'll be worshipping you until the end of my days ;) customcomponent.cs
×
×
  • Create New...