10
Answers

Month Names GUI

Prime b

Prime b

12y
6.5k
1
Problem:
Create an enumeration named Month that holds values for the
months of the year, starting with JANUARY equal to 1. (Recall
that an enumeration must be placed within a class but outside
of any method.) Using a GUI interface, prompt the user for a
month integer. Convert the user's entry to a Month value and
display it. Save the project as MonthNamesGUI.

Thats what I have found in google, and i just copy pate it, but I dont know where go to next....

            int input, output;
            enum month : byte { Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec };
            input = Convert.ToInt32(inPutTextBox);


Answers (10)