I created an enumeration in a class library... and compiled it into a dll
I then imported this reference to a windows form project as a referenced dllCode:Public Enum TestEnum x = 0 End Enum
Intellisense will pick up the member (x) in this case but won't evaluate toCode:Public Class Form1 Dim mytestenum As TestPublicEnum.TestEnum Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' Access of shared member, constant member, enum member or ' nested type through ' an instance; qualifying expression will not be evaluated. MsgBox(Str(mytestenum.x)) End Sub End Class
mytestenum.x to 0 like i expected.
What am I missing?


Reply With Quote
Code Project - "Best VB.NET article of October 2011"
on the left <--)
