Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to detect user hti cancel in ColorDialog
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 3.0
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01458926
Message ID:
01458940
Views:
32
>How would you detect that a user clicked in the cancel button in the ColorDialog dialog?

The ShowDialog() method returns a DialogResult enum value which you can check:
if ( myColorDialog.ShowDialog() == DialogResult.Cancel)
{
//User Cancelled......
}
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform