Enum Statement in vb.net

Satyapriyanayak
Posted by Satyapriyanayak under VB.NET category on | Points: 40 | Views : 1121
Public Class Form1
Inherits System.Windows.Forms.Form

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MsgBox("Monday is day" & Days.Monday)
End Sub
Enum Days
Sunday = 1
Monday = 2
Tuesday = 3
Wednesday = 4
Thusday = 5
Friday = 6
Saturday = 7
End Enum
End Class

Comments or Responses

Login to post response