HighTechTalks DotNet Forums  

question about ComponentAdded event

Dotnet Framework (WinForms DesignTime) microsoft.public.dotnet.framework.windowsforms.designtime


Discuss question about ComponentAdded event in the Dotnet Framework (WinForms DesignTime) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
grace lee
 
Posts: n/a

Default question about ComponentAdded event - 10-25-2007 , 02:17 AM






find a question as blew:

Suppose that you want to do an add-in to change some properties of a control
when is added to a form. It seems that the proper event is
IComponentChangeService.ComponentAdded, but it happens that the control is
not sited yet at that moment and therefore properties such Text or Size are
overwritten later when the control is sited (it works fine with other
properties, however).

So, it seems that a new event in the component model is needed or maybe the
ComponentAdded event should be fired when the control is actually sited on
the form. Is there a current workaround for this issue?

I want to ask this question,too!

thanks a lot :-)



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.