Re: Whats's the problem using a enum like this?



Are you sure this is one of those cases? The code you have there wouldn't
generate those types of warnings - it doesn't for me.

" **Developer**" <REMOVEdeveloper@xxxxxxxxxx> wrote in message
news:OrvAdO3IGHA.2064@xxxxxxxxxxxxxxxxxxxxxxx
> If e.Button = MouseButtons.Left Then
>
> also from a
>
> Dim Answer As DialogResult = MessageBox.Show..
>
> Select Case Answer
>
> Case DialogResult.Yes
>
> and many other uses of an enum I get
>
> Warning 153 Access of shared member, constant member, enum member or
> nested type through an instance; qualifying expression will not be
> evaluated.
>
>
>
> Why not. What's the problem using a enum like this?
>
>
>
>
>
>


.