Picture Viewer Part 1:
Set up the form
Picture Viewer Part 1:
Set up the form
We will do a large project in several steps.
- Start a new C# Form Application and name it PictureViewer.
- Add the following controls to the project:
- A menu strip:
- A picture box: , picShow. Set the size mode to autosize.
- An open file dialog: , OpenFileDialog1
- The menuStrip is built as shown below with mnuOpen, mnuSelectFolder and mnuExit.
Type FILE in the first menu position, then going down type &Open, Select &Folder, -, E&xit
Typing the - creates a line. After entering all of the menu items go to the properties window and name the menu items mnuFile, mnuOpen, mnuSelectFolder and mnuExit.
The form will look like this (the picture box is not visible here because there is no picture yet.):