Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. reate a Windows Forms application named FirstInitialLastName7B (FLastname7B).
  2.  
  3. Create a Windows Forms application.
  4.  
  5. Add a File...Exit menu....Also add a Color...Red...Green...Blue...Green...Separator...Show Games, Show Good, Show Bad (Each of these should be able to be checked or unchecked). Example - When Show Games is checked it will show that listbox, when unchecked it will not show it. This is same for all three. Make sure you set them all to checked to begin with.
  6.  
  7. For the colors...Make the background of the form change to the selected color.
  8.  
  9. Make all menu items functional
  10. Create a sequential access file named games.txt and save it in the project’s bin\Debug folder.
  11. Enter the names of 20 games in the file. Each games name should be entered on the same line in this format: game title, genre (the title followed by a comma, a space character, and the system).
  12. Close the games.txt window.
  13. Create a second sequential access file named goodone.txt and save it in the Project’s bin\Debug folder. Enter the following two games in the file: Odyssey, Switch and , Gears of War, XBox 360.
  14. Close the goodone.txt file.
  15. Create a third sequential access file named badone.txt and save it in the Project’s bin\Debug folder. Enter the following name in the file: Pong, Odyssey and E.T. the Extra Terrestrial, Atari.
  16. Close the badone.txt file.
  17. The application’s interface should contain three list boxes named lstgames, lstgoodone, and lstbadone.
  18. Each list box’s Sorted property should be set to True. The lstgoodone and lstbadone controls should have their SelectionMode property set to None.
  19. When the interface appears, the contents of the game.txt, goodone.txt, and badone.txt files should appear in the appropriate list boxes.
  20.  
  21.  
  22.  
  23. The interface should also contain three buttons with the following captions: GoodOne, BadOne, and Exit.
  24. The GoodOne button should move the game selected in the lstgames control to the lstgoodone control.
  25. The BadOne button should move the game selected in the lstgames control to the lstbadone control.
  26. Before the form is closed, its FormClosing procedure should save the contents of each list box in the appropriate file.
  27. Verify that everything is written to the txt files and make sure they are in your debug bin folder or it won't work when it is graded.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement