Windows Develop Bookmark and Share   
 index > Windows Forms Designer > notify changes
 

notify changes

Hi,

if i make some designtime verb that call a method in my component that alters teh state of some properties.
those properties does never get persisted in the code unless i change something else via the prop browser after my designer verb was used.

so , how can i notify the designer that my properties has changed?

//Roger
MigrationUser 1  Friday, October 08, 2004 6:59 AM
i think you have to use property descriptor's setvalue method instead.

TypeDescriptor.GetProperties(myObject)["MyPropertyName"].SetValue(myObject, myNewValue);
MigrationUser 1  Monday, October 11, 2004 1:36 AM

You can use google to search for other answers

Custom Search

More Threads

• Controls change position when form is opened in designer
• design time
• Distance between controls
• Problem with Windows Forms designer when assembly loads another assembly using reflection
• Resizing and selecting a control in run time
• Embeded panel within a ToolStripControlHost is not available at design time
• Preprocessor Macros with Windows Form Designer Compiler
• When/Where should I instantiate the control when placing on the designer
• Binding to Array
• Why is button not showing with rounded edges?