Visual C Sharp - PowerPoint PPT Presentation

1 / 19
About This Presentation
Title:

Visual C Sharp

Description:

Download from Microsoft. http://www.microsoft.com/express/download/default.aspx ... Free software from Microsoft. IDE environment ... – PowerPoint PPT presentation

Number of Views:339
Avg rating:3.0/5.0
Slides: 20
Provided by: johnal1
Category:

less

Transcript and Presenter's Notes

Title: Visual C Sharp


1
Visual C Sharp
  • Dr John Allwork
  • Room E334
  • 0161 247 1655
  • j.b.allwork_at_mmu.ac.uk
  • www.det.mmu.ac.uk/staff/allwork
  • 24 weeks - 1 hour lecture, 2 hour lab

2
Visual C Sharp
  • Assignments
  • 2 assignments, 2 tests
  • Assignment 1 30, 2 40
  • Tests 1 - 10, 2 - 20
  • Dates to be confirmed.
  • Assignment 1 Hand-in date 1 Dec
  • Test 1 Tuesday 8 Dec
  • Test 2 Tuesday 16 March
  • Assignment 2 Hand-in date 20 April

3
Visual C Sharp
  • Books
  • Mine!
  • C 2008 and .NET programming for Engineers
  • www.elektor.com 29
  • 5 in the library if you dont want to give me any
    royalties !
  • Lecture notes available too you will have to
    print off

4
Visual C Sharp
  • Other books
  • Sams Teach Yourself C Language in 21 Days
  • C How to Program Deitel
  • Search Google books for limited preview
  • Also more notes, videos and weekly tasks
  • - on my web site.
  • And use MS forums, MS library

5
Visual C Sharp Introduction - 5
  • Introduction, Lectures IDE
  • GUI Controls Properties and events
  • Dialogs and forms
  • UML design
  • C language basics
  • C language arrays and strings
  • C language -program flow
  • OOP Methods
  • OOP Classes
  • File handling

6
Visual C Sharp Introduction - 6
  • Multimedia Graphs
  • Debugging
  • Run-time placement
  • Threads
  • Internet communication
  • Databases introduction
  • Databases GUI Displaying
  • Databases Accessing from code 1
  • Plotting
  • Plus assignments, revision tests
  • Others? DLL, Web services hardware interfacing

7
Visual C Sharp
  • Software Visual C 2008
  • Download from Microsoft
  • http//www.microsoft.com/express/download/default.
    aspx
  • Free but slightly limited version
  • Also install SQL 2008 used for databases
  • Register the product

8
Visual C Sharp
  • Development environment
  • We will create Windows applications

9
Visual C Sharp
  • Design environment

Solution explorer
Menus
Form
Code editor
Toolbar
Properties/events window
messages
10
Visual C Sharp
  • The Form Most important - place controls the
    GUI.
  • Display by clicking Design tab

Form Textbox Button Label Listbox
11
Visual C Sharp
  • The Toolbox
  • Grouped by task
  • Contains controls
  • Controls are
  • Buttons,
  • Textboxes,
  • Labels,
  • Radio buttons
  • etc.

12
Visual C Sharp
  • The Properties / Events window
  • For the controls
  • Properties
  • Name, height, top, position, text
  • Description

13
Visual C Sharp
  • The Properties / Events window - for the controls
  • Events Happen to an object
  • e.g. Button click
  • KeyPress
  • MouseMove
  • Others Form load

14
Visual C Sharp
  • The Code Editor enter your code
  • Double-click object to enter code
  • Some added for you do not delete

15
Visual C Sharp
  • Your First C Program
  • Run C, start a new Project, gt Windows
    Application and call it Hello world
  • Save the project. Select FilegtSave All.
  • Display the form (click form1.csDesign tab).
  • Add button from Toolbox to form

16
Visual C Sharp
  • Change the buttons text display (a property).
  • Display the properties window,
  • Scroll to the Text property, type in Hello
    world

17
Visual C Sharp
  • Place TextBox and label to form
  • Change label caption to My First C Program.
  • Form

18
Visual C Sharp
  • Run program not much happens. Close it.
  • Double-click button to add code for button click
  • Add textBox1.Text"Hello world"
  • Run code, click button.
  • Hello World is displayed
  • Your first C program !
  • Note dot notation used to access property
  • C is case sensitive

19
Visual C Sharp
  • Summary
  • Free software from Microsoft
  • IDE environment
  • Main parts Form, Code editor Toolbox and
    properties/event window
  • Drag/drop controls (buttons) to form
  • Double-click to add code
  • Run it!
  • Do week 1 tasks and watch video at
  • http//msdn.microsoft.com/en-us/beginner/bb964631.
    aspx
  • Follow link in getting started in main C window
Write a Comment
User Comments (0)
About PowerShow.com