Loop Enum values and Show text

Loop Enum values and Show text


        Dim items As Array
        items = System.Enum.GetValues(GetType(Syncfusion.Windows.Forms.Chart.ChartSeriesType))
        Dim item As Integer
        For Each item In items
            Dim val As Object
            val = [Enum].GetName(GetType(Syncfusion.Windows.Forms.Chart.ChartSeriesType), item)
            MsgBox(val) ' Will Retuen B
        Next

Comments

Popular posts from this blog

Shared / Static Class in vb.net/C#

Xamarin Forms : PopUp Page with RG.Plugins.Popup

Text was truncated or one or more characters had no match in the target code page.". (SQL Server Import and Export Wizard)