I am developing a winform application. Based on some values (say x), I want to show the user a warning, the timer has updated another value (y) that affects x, and will check the x value and show the warning to the user. Alert displays a message box with yes / no options if the user clicks yes and then processes.
If the user has not responded to the warning for a long time (say, 10 minutes), several warning messages may appear, I want me to create the DialableResult variable with a value of zero, so I can check whether the user has selected any parameter or not. Now the problem is that it does not allow setting the value of this variable
taskAlert.Value=MessageBox.Show(kMessage, appErrorTitle, MessageBoxButtons.YesNo);
I give me a mistake. The property or index "System.Nullable.Value" cannot be assigned - it is read-only
source share