RegistryState.Changed Event
3/29/2010
Event that is raised when a value changes.
Namespace: Microsoft.WindowsMobile.Status
Assembly: Microsoft.WindowsMobile.Status (in microsoft.windowsmobile.status.dll)
Syntax
public override event ChangeEventHandler Changed
'Declaration
Public Event Changed As ChangeEventHandler
Example
The following example shows how to enable the Changed event to be raised when the value "MyValue" changes under the key "HKEY_LOCAL_MACHINE\\MyKey":
RegistryState myState = new RegistryState("HKEY_LOCAL_MACHINE\\MyKey", "MyValue");
private void Form1_Load(object sender, EventArgs e)
{
myState.Changed += new ChangeEventHandler(myState_Changed);
}
void myState_Changed(object sender, ChangeEventArgs args)
{
object myStateValue = args.NewValue;
}
See Also
Reference
RegistryState Class
RegistryState Members
Microsoft.WindowsMobile.Status Namespace