N
~~~ .NET Ed ~~~
I am having a problem with my winforms. I had no problem with that in
VS.2005 but now on VS2005 it is showing some strange behaviour.
To simplify things my form has two buttons OK and Cancel. I set the
DialogResult properties of these buttons to OK and Cancel respectively.
Then at the form level I set the AcceptButton to the OK and assigned the
CancelButton to Cancel. So far so good. I save all the files recompile the
whole solution and all of a sudden the Form Accept/Cancel properties are
reset to NONE.
That explains why when I close my form and debug it even though I pressed OK
the ShowDialog() returns DialogResult.None but that is not what I have
specified with the design options
Is this a bug in VS.2005 ? I have the non-SP1 version (don't have that much
space left to install SP1 which refuses to install due to lack of space even
though I still have 2.0 GB).
Emilio
VS.2005 but now on VS2005 it is showing some strange behaviour.
To simplify things my form has two buttons OK and Cancel. I set the
DialogResult properties of these buttons to OK and Cancel respectively.
Then at the form level I set the AcceptButton to the OK and assigned the
CancelButton to Cancel. So far so good. I save all the files recompile the
whole solution and all of a sudden the Form Accept/Cancel properties are
reset to NONE.
That explains why when I close my form and debug it even though I pressed OK
the ShowDialog() returns DialogResult.None but that is not what I have
specified with the design options
Is this a bug in VS.2005 ? I have the non-SP1 version (don't have that much
space left to install SP1 which refuses to install due to lack of space even
though I still have 2.0 GB).
Emilio