A question on Properties.Settings.Default

  • Thread starter Thread starter Dom
  • Start date Start date
D

Dom

I notice from the IntelliSense window that Properties.Settings.Default
have events, such as PropertyChanged. This could be useful, but how
do I capture this event? I'm used to inserting a control onto a form,
then using the property box to set the name for an eventhandler. I
can't seem to do this for Properties.

Dom
 
I notice from the IntelliSense window that Properties.Settings.Default
have events, such as PropertyChanged. This could be useful, but how
do I capture this event? I'm used to inserting a control onto a form,
then using the property box to set the name for an eventhandler. I
can't seem to do this for Properties.

You can always subscribe to an event directly in code:

Settings.Default.MyPropertyChanged += MyPropertyChangedHandler;

Where:

void MyPropertyChangedHandler(object sender, EventArgs e)
{
// ...
}

Pete
 
Back
Top