Re: Command to refresh the properties window and form?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I found out how to do this myself:

// Tell the designer that a property of another control has changed
IComponentChangeService c =
(IComponentChangeService)GetService(typeof(IComponentChangeService));

c.OnComponentChanged(AnotherControl, null, null, null);

--
Andrew Cutforth - AJC Software - www.ajcsoft.com
The best folder synchronize and directory compare tool available.
AJC Active Backup instantly archives every file you edit giving you
unlimited undo and automatic revision control. Never lose your data again.


.



Relevant Pages

  • RE: Rename HTML Designer Control via addin
    ... IComponentChangeService for the HTML designer and can recognize when a ... > I am trying to create some code that renames a web form control when it is ... > dropped onto the designer in VS 2003. ... > IComponentChangeService for the HTML designer and can recognize when a ...
    (microsoft.public.vsnet.ide)
  • Re: Intercept when my control dropped on a WebForm
    ... To get this "extra" functionality in design-time for your control, ... a IComponentChangeService and subscribes to its ComponentAdding event. ... in my case the designer looks like this: ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Re: PDA application development
    ... Chris Tacke, Embedded MVP ... To get it to even work at all - not considering designer support ... write a COM interop wrapper around the control. ... "Michael Salamone" wrote: ...
    (microsoft.public.pocketpc.developer)
  • Re: Disappearing Controls when the designer loads a form.
    ... which were traced to an exception my user control threw while in the designer. ... private ArrayList readOnlyColumnsList; ... public string ReadOnlyColumns ...
    (microsoft.public.dotnet.framework.windowsforms.designtime)
  • Re: Region property and applying it in a control
    ... > my region, but when the user resizes the control, the image does not match ... >> Bob Powell ... >> // This call is required by the Windows.Forms Form Designer. ... >> protected override void OnPaintBackground ...
    (microsoft.public.dotnet.framework.drawing)