1b – inside visual studio lingma acheson department of computer and information science, iupui...

6
1b – Inside Visual Studio Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB .NET Programming

Upload: camilla-barton

Post on 24-Dec-2015

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1b – Inside Visual Studio Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming

1b – Inside Visual Studio

Lingma AchesonDepartment of Computer and Information Science, IUPUI

CSCI N331 VB .NET Programming

Page 2: 1b – Inside Visual Studio Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming

Purpose• Be more familiar with the Visual

Studio interface• Know how to use some of the tools• Know how to run a project

Page 3: 1b – Inside Visual Studio Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming

Layout• Download and unzip the project

“Welcome”• Open the project by double clicking

on the solution file.• Double click on the “Welcome.vb”• Layout

– Menu bars on the top– Tool bars under the menu bar– Toolbox on the left hand side– Solution Explorer and Properties on the right

hand side– Form Window in the middle

Page 4: 1b – Inside Visual Studio Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming

Layout• Toolbox on the left hand side

– Add items to the Form– All Windows Forms

• Solution Explorer on the right hand side– Manage forms and files used for the project– Right click on the project name →Properties

→ Compile → set both “Option explicit” and “Option strict” to On

• Save the project (* means the file is not saved)

Page 5: 1b – Inside Visual Studio Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming

Layout• Properties

– Form properties: Name, Size, Background Color, …

– Label properties: Name, Text, Background Color, …

– Picture properties: Name, Image, Size, …

Page 6: 1b – Inside Visual Studio Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming

Run the Project• Build → Build projectName• Run the project: Three options

– Debug → Start Debugging– F5– Click on the green triangle button on the tool

bar