Task 1 - Visual Studio Guide
Task 1 - Visual Studio Guide
Page | 1
Luke Barnes
Luke Barnes
Page | 3
c) The user will now be presented with a blank form. Before creating can get underway the user must first select the toolbox and pin it to the screen. To open the toolbox click Here
Luke Barnes
d) With the Form open the user can now begin to design a program / application. To do this they must choose which controls they wish to use such as... Button Page | 4
Label
Text Box
To add these controls to the text box the User simply clicks and drags the desired control icon to the form wherever they wish.
Drag and drop of button from toolbox to form (left to right)
Luke Barnes
Page | 5
a) With the controls in place the user can begin to alter settings such as font size, title and text. To do this click on the control that requires alteration, and then click on the properties bar found in the bottom right hand corner.
For example to change the text here, click Button1 and type in the desired text. This will then appear on the button. A good example of this in action would be a Translate! button found on a translation program.
Selected button (above) Properties (left) Renamed button (below)
To change the size of a control (such as a label) would be slightly different. To do this a user would again select the control in question (for this example a Label) and select Font and click on the small box with three dots in
Luke Barnes
it. A pop up window would then appear allowing to change text size, font and colour etc. This will result, (if text size is changed) in a bigger/smaller Label.
Page | 6
Original font size (left +above) Font button (right) Font control (below) Resized Label (bottom right)
b) To rename controls is very similar to altering the text found in a Button or Label. Simply select the control in question and click name in the properties menu and enter a new name (However this will require the new name to be entered when coding a program).
Luke Barnes
Original Label name and form (right and above) Renamed Label (below)
Page | 7
Luke Barnes
ToString
To use ToString the code is displaying to the user information to the user through things such as message boxes, labels etc.
Luke Barnes
Using the randomize function means that a random number will be set between a range determined by the user such as 1-10 Page | 9
Luke Barnes
Page | 10
Scope
Scope means the amount of access that is available to either the program or certain parts of the program. There are various types of scope three of which are: Private: This means that only selected code is able to access the private code Public: this means that it is open to any piece of code that needs to access it Protected: this means exactly what it says. For example a child class would be protected as the data would be restricted to only certain classes.