DialogResult Issues

I've seen some funny behavior with DialogResult when working in Forms. I
can't trace it exactly, but occasionally when I'm setting the Form's
DialogResult property like this:

this.DialogResult = DialogResult.|

when the cursor is at '|' above, the drop down incorrectly offers:

Equals(object)
GetHashCode()
GetType()
ToString()

instead of the Enum values like:

Abort
Cancel
Ignore
No
None
OK
Retry
Yes

Has anyone else seen this?

Thanks,
Derek


3 comments
Comment actions Permalink

Has anyone else seen this?


Yes, just a couple of minutes ago :-/

-Thomas


0
Comment actions Permalink

Derek,

In your example the last "DialogResult" occurence is resolved to
property, so it suggests the choices accordingly. This will be fixed soon so
it will propose both enum members and property members.

--
Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Derek" <dprice@doble.com> wrote in message
news:c2kqpf$imk$1@is.intellij.net...

I've seen some funny behavior with DialogResult when working in Forms. I
can't trace it exactly, but occasionally when I'm setting the Form's
DialogResult property like this:

>

this.DialogResult = DialogResult.|

>

when the cursor is at '|' above, the drop down incorrectly offers:

>

Equals(object)
GetHashCode()
GetType()
ToString()

>

instead of the Enum values like:

>

Abort
Cancel
Ignore
No
None
OK
Retry
Yes

>

Has anyone else seen this?

>

Thanks,
Derek

>
>


0
Comment actions Permalink

This is a known issue and there is a bug in the tracker (#1110).

--
Andrey Simanovsky
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"



"Derek" <dprice@doble.com> wrote in message
news:c2kqpf$imk$1@is.intellij.net...

I've seen some funny behavior with DialogResult when working in Forms. I
can't trace it exactly, but occasionally when I'm setting the Form's
DialogResult property like this:

>

this.DialogResult = DialogResult.|

>

when the cursor is at '|' above, the drop down incorrectly offers:

>

Equals(object)
GetHashCode()
GetType()
ToString()

>

instead of the Enum values like:

>

Abort
Cancel
Ignore
No
None
OK
Retry
Yes

>

Has anyone else seen this?

>

Thanks,
Derek

>
>


0

Please sign in to leave a comment.