BOOK. Visual Programming DCSA Bangladesh Open University School of Science and Technology

Similar documents
Android App Development for Beginners

MULTIMEDIA Motion Graphics for Multimedia

Preferences...3 Basic Calculator...5 Math/Graphing Tools...5 Help...6 Run System Check...6 Sign Out...8

Creating an Online Test. **This document was revised for the use of Plano ISD teachers and staff.

MOODLE 2.0 GLOSSARY TUTORIALS

GACE Computer Science Assessment Test at a Glance

CENTRAL MAINE COMMUNITY COLLEGE Introduction to Computer Applications BCA ; FALL 2011

Appendix L: Online Testing Highlights and Script

STUDENT MOODLE ORIENTATION

CHANCERY SMS 5.0 STUDENT SCHEDULING

Student User s Guide to the Project Integration Management Simulation. Based on the PMBOK Guide - 5 th edition

Guidelines for the Master s Thesis Project in Biomedicine BIMM60 (30 hp): planning, writing and presentation.

On Human Computer Interaction, HCI. Dr. Saif al Zahir Electrical and Computer Engineering Department UBC

Administrative Services Manager Information Guide

Test Administrator User Guide

DIGITAL GAMING & INTERACTIVE MEDIA BACHELOR S DEGREE. Junior Year. Summer (Bridge Quarter) Fall Winter Spring GAME Credits.

TIPS PORTAL TRAINING DOCUMENTATION

SCT Banner Student Fee Assessment Training Workbook October 2005 Release 7.2

Lectora a Complete elearning Solution

Introduction to Moodle

Minitab Tutorial (Version 17+)

BSM 2801, Sport Marketing Course Syllabus. Course Description. Course Textbook. Course Learning Outcomes. Credits.

Prepared by: Tim Boileau

Urban Analysis Exercise: GIS, Residential Development and Service Availability in Hillsborough County, Florida

BRAZOSPORT COLLEGE LAKE JACKSON, TEXAS SYLLABUS. POFI 1301: COMPUTER APPLICATIONS I (File Management/PowerPoint/Word/Excel)

BUS Computer Concepts and Applications for Business Fall 2012

Computer Science. Embedded systems today. Microcontroller MCR

Multimedia Courseware of Road Safety Education for Secondary School Students

Specification of the Verity Learning Companion and Self-Assessment Tool

Emporia State University Degree Works Training User Guide Advisor

Learning Microsoft Publisher , (Weixel et al)

Houghton Mifflin Online Assessment System Walkthrough Guide

ITSC 2321 Integrated Software Applications II COURSE SYLLABUS

SCT Banner Financial Aid Needs Analysis Training Workbook January 2005 Release 7

INSTRUCTOR USER MANUAL/HELP SECTION

SOFTWARE EVALUATION TOOL

ADMN-1311: MicroSoft Word I ( Online Fall 2017 )

TotalLMS. Getting Started with SumTotal: Learner Mode

Adult Degree Program. MyWPclasses (Moodle) Guide

Millersville University Degree Works Training User Guide

CSCI 333 Java Language Programming Fall 2017 INSTRUCTOR INFORMATION COURSE INFORMATION

PRAAT ON THE WEB AN UPGRADE OF PRAAT FOR SEMI-AUTOMATIC SPEECH ANNOTATION

MASTER S COURSES FASHION START-UP

Rover Races Grades: 3-5 Prep Time: ~45 Minutes Lesson Time: ~105 minutes

Using SAM Central With iread

Outreach Connect User Manual

Excel Intermediate

Texas A&M University-Central Texas CISK Comprehensive Networking C_SK Computer Networks Monday/Wednesday 5.

Course Content Concepts

Bluetooth mlearning Applications for the Classroom of the Future

Graduate Program in Education

Using Blackboard.com Software to Reach Beyond the Classroom: Intermediate

EDIT 576 DL1 (2 credits) Mobile Learning and Applications Fall Semester 2014 August 25 October 12, 2014 Fully Online Course

LEARNING AGREEMENT FOR STUDIES

EdX Learner s Guide. Release

Louisiana Free Materials List

Science Olympiad Competition Model This! Event Guidelines

DOCTORAL SCHOOL TRAINING AND DEVELOPMENT PROGRAMME

EDCI 699 Statistics: Content, Process, Application COURSE SYLLABUS: SPRING 2016

Justin Raisner December 2010 EdTech 503

Quick Start Guide 7.0

ACTL5103 Stochastic Modelling For Actuaries. Course Outline Semester 2, 2014

WiggleWorks Software Manual PDF0049 (PDF) Houghton Mifflin Harcourt Publishing Company

PRD Online

Rental Property Management: An Android Application

Prototype Development of Integrated Class Assistance Application Using Smart Phone

Examity - Adding Examity to your Moodle Course

EDIT 576 (2 credits) Mobile Learning and Applications Fall Semester 2015 August 31 October 18, 2015 Fully Online Course

PowerTeacher Gradebook User Guide PowerSchool Student Information System

"On-board training tools for long term missions" Experiment Overview. 1. Abstract:

Software Maintenance

The Moodle and joule 2 Teacher Toolkit

THE WEB 2.0 AS A PLATFORM FOR THE ACQUISITION OF SKILLS, IMPROVE ACADEMIC PERFORMANCE AND DESIGNER CAREER PROMOTION IN THE UNIVERSITY

Bittinger, M. L., Ellenbogen, D. J., & Johnson, B. L. (2012). Prealgebra (6th ed.). Boston, MA: Addison-Wesley.

THE USE OF WEB-BLOG TO IMPROVE THE GRADE X STUDENTS MOTIVATION IN WRITING RECOUNT TEXTS AT SMAN 3 MALANG

M55205-Mastering Microsoft Project 2016

Class Numbers: & Personal Financial Management. Sections: RVCC & RVDC. Summer 2008 FIN Fully Online

MBA 5652, Research Methods Course Syllabus. Course Description. Course Material(s) Course Learning Outcomes. Credits.

Session Six: Software Evaluation Rubric Collaborators: Susan Ferdon and Steve Poast

Business. Pearson BTEC Level 1 Introductory in. Specification

Articulation Agreement between Life University & Atlanta Technical College

Scott Foresman Addison Wesley. envisionmath

Odyssey Writer Online Writing Tool for Students

Chamilo 2.0: A Second Generation Open Source E-learning and Collaboration Platform

SkillPort Quick Start Guide 7.0

Task Types. Duration, Work and Units Prepared by

ecampus Basics Overview

POFI 1349 Spreadsheets ONLINE COURSE SYLLABUS

TIMSS ADVANCED 2015 USER GUIDE FOR THE INTERNATIONAL DATABASE. Pierre Foy

BHA 4053, Financial Management in Health Care Organizations Course Syllabus. Course Description. Course Textbook. Course Learning Outcomes.

THREE-YEAR COURSES FASHION STYLING & CREATIVE DIRECTION Version 02

DegreeWorks Advisor Reference Guide

Learning Microsoft Office Excel

Online Marking of Essay-type Assignments

Ascension Health LMS. SumTotal 8.2 SP3. SumTotal 8.2 Changes Guide. Ascension

Netsmart Sandbox Tour Guide Script

Bergen Community College Division of Business, Social Sciences & Public Services Department of Social Sciences. Departmental Policy Syllabus

Training materials on RePro methodology

Managing Sustainable Operations MGMT 410 Bachelor of Business Administration (Sustainable Business Practices) Business Administration Program

University of the Arts London (UAL) Diploma in Professional Studies Art and Design Date of production/revision May 2015

Transcription:

BOOK Visual Programming DCSA 1304 Bangladesh Open University School of Science and Technology

Visual Programming School of Science and Technology Visual Programming DCSA 1304 Writer Mohammad Mamunur Rashid Assistant Professor School of Science and Technology Bangladesh Open University Md. Nazrul Islam Assistant Professor Department of Computer Science & Engineering Islamic University, Kushtia Co-ordinator Professor Dr. K.M. Rezanur Rahman School of Science and Technology Bangladesh Open University BANGLADESH OPEN UNIVERSITY

4 First Edition: November, 2014 Published by Publishing, Printing and Distribution Division Bangladesh Open University Gazipur-1705. Cover Design Monirul Islam Graphics Abdul Malek Computer Compose Sabina Yesmin Printed by Rainbow printing press 85/1, Nayapaltan, Dhaka-1000 ISBN Bangladesh Open University Bangladesh Open University School of Science and Technology Gazipur-1705 Website: www.bou.edu.bd

Contents About this Book 1 How this Book is structured... 1 Course overview 3 Visual Programming... 3 Course Code: DCSA1304... 3 Credit hour: 3 hours... 3 Course outcomes... 3 Timeframe... 3 Need help?... 4 Assignments... 4 Assessments... 4 Getting around this book 4 Margin icons... 4 Unit 1 6 Getting started with visual studio 2008... 6 Introduction... 6 Lesson 1.1 6 Introduction to visual studio 2008... 6 Benefits of using visual studio 2008... 7 Features of visual studio 2008... 7 Benefits of.net Framework... 8 Components of.net Framework 3.5... 9 Advantages of Visual Programming... 10 Lesson 1.2 11 Installation procedure of visual studio 2008... 11 Introduction... 11 Editions of visual studio 2008... 11 System Requirements... 12 Installation process... 12 Lesson 1.3-1.5 17 Exploring Integrated Development Environment... 17 Introduction... 17 How to run Visual Studio 2008... 17 Basic windows of visual studio 2008 IDE... 19 Design Time, Run Time, and Debug Time... 25

6 Contents Lesson 1.6-1.8 26 Creating, saving and running windows application... 26 Introduction... 26 Open/ Start visual studio 2008... 26 Creating a simple visual basic project... 27 Lesson 1.9 34 Customizing windows forms... 34 Introduction... 34 Changing the appearance of a windows form... 34 Assessment... 40 Unit 2 42 Designing User Interface-1... 42 Introduction... 42 Lesson 2.1-3 42 Adding Basic Controls... 42 TextBox Controls... 42 Label... 44 Command Buttons... 45 Unit summary... 50 Assessment... 51 Lesson 2.4-2.5 52 Check box and Radio button... 52 CheckBox... 52 Using Radio Button... 53 Assessment... 55 Lesson 2.6-2.7 56 ComboBox and ListBox... 56 ComboBox... 56 Adding items to a ComboBox... 56 Removing items from a Combo Box... 58 ListBox... 58 Adding items to a List Box... 58 Removing items from a List Box... 60 Assessment... 61

Unit 3 62 Designing User Interface-2... 62 Lesson 3.1-3 62 TreeView Control... 62 TreeView Contol... 62 Creating TreeView at Design Time... 64 Handling TreeView Events... 68 Using Checkboxes in TreeView Control... 69 Lesson 3.4-3.6 72 TabControl... 72 Introduction... 72 TabControl... 72 Creating TabControls... 73 Assessment... 76 Lesson 3.7 77 TrackBar Component... 77 Basic about TrackBar... 77 Handling TrackBar Events... 78 Assessment... 79 Lesson 3.8 80 Timer... 80 Introduction... 80 Creating Digital Clock... 80 Creating Stopwatch... 82 Lesson 3.9 3.10 83 Image... 83 Introduction... 83 PictureBox... 83 Image Property... 83 Controlling the image... 84 Creating Animation... 85 Creating Animation using Timer... 86 Unit 4 88 Managing Data... 88 Introduction... 88

8 Contents Lesson 4.1 88 Data types... 88 Data type... 88 Visual Basic 2008 Data types... 88 Numeric Data Types... 89 Non-numeric Data Types... 89 Lesson 4.2 91 Variables... 91 Variable... 91 Declaring Variables... 91 Rules naming Variable... 92 Assigning Values to Variables... 92 Constants... 92 Lesson 4.3 93 Keywords... 93 Keyword... 93 Types of keywords... 93 Reserved keywords... 93 Unreserved keywords... 94 Lesson 4.4 95 Mathematical Operations... 95 Mathematical Operations... 95 Mathematical Order of Operations... 96 Comparison Operators... 97 Logical Operators... 98 Unit summary... 98 Assessment... 99 Unit 5 100 Function... 100 Introduction... 100 Lesson 5.1 5.2 100 MsgBox( ) and InputBox ( ) functions.... 100 MsgBox ( ) Function... 100 The InputBox( ) Function... 102 Assessment... 104 Lesson 5.3 5.4 105 String Manipulation... 105 String Manipulation Using + and & signs... 105

String Manipulation Using VB2008 Built-in Functions... 107 Assessment... 111 Unit 6 112 Control Statements... 112 Introduction... 112 Lesson 6.1 112 Visual basic 2008 Conditionals statements 1... 112 If control structure... 112 If...Then Statement... 112 If...Then...Else Statement... 113 If...Then...ElseIf Statement... 114 Lesson 6.2 116 Select Case Control Structure... 116 Select Case... 116 Assessment... 117 Unit 7 118 Loop... 118 Introduction... 118 Lesson 7.1 118 For Next Statements... 118 Loop... 118 For Next Statements... 119 Lesson 7.2 122 Do...Loop... 122 Do Loop... 122 Lesson 7.3 124 While loop... 124 While...End While Loop... 124 Assessment... 125 Unit 8 126 Report... 126 Introduction... 126

10 Contents Lesson 8.1 126 Report... 126 Fundamental Knowledge about Crystal Report... 126 Crystal Reports for Visual Studio 2008... 127 Powerful features of Crystal Report in VS2008... 127 Lesson 8.2 8.3 129 Working with Crystal Report... 129 Introduction... 129 How to open Crystal Report... 129 Procedure to Create New Crystal Report Document... 130 Creating New Crystal Report Document using the Report wizard method... 131 Lesson 8.3 8.4 136 Working with Microsoft (MS) access Database... 136 Introduction... 136 MS Access Database... 136 Features of Microsoft Access Database... 137 Components of Microsoft Access... 137 Creating database in access 2007... 139 Create tables in database... 140 Lesson 8.5 8.6 144 Connecting Crystal Report with MS Access Database... 144 Introduction... 144 Connecting crystal report with MS Access Database... 144 Lesson 8.7 8.8 150 Design Crystal Report Using Database Table s fields... 150 Introduction... 150 Designing Crystal Report Using Database... 150 Lesson 8.9 8.10 156 Representing Group Data on Crystal Report... 156 Introduction... 156 Creating group using standard report wizard... 156 Lesson 8.11-8.12 167 Parameter in Crystal Report... 167 Introduction... 167 Benefits of using parameter in Crystal Report... 167 Creating Parameter field... 169 Running Parameter field... 171 Assessment... 177

Preface to the Edition The course Visual Programming is including in the syllabus of Diploma in Computer Science and Application program to familiar a learner with Visual Basic. The book is written according to approved syllabus of the course and commonwealth of learning (COL) Template is used for writing the manuscript. The basic aspects of Visual Programming are presented. Intrinsic controls, managing of data, variables, functions, conditional statements, crystal report are discussed. Besides of this visual development of graphical user interface that are easy to use and easy to learn for a programmer has been included in the book. The book is organized into 8 units. The coverage is modular in the sense that certain unit or group of units is self-sufficient. At the end of each lesson, there are activity, exercise and hands on practices for preparation of examination. We hope that COL Template used in the process of writing texts, the lessons could be more organized and learners can be more skilled and benefited. Suggestions for further improvement will be highly appreciated. Dean School of Science and Technology Bangladesh Open University

Visual Programming About this Book This book is a Self learning Materials (SLMs) written for distance learners. The book contains forty five lessons and has been produced by School of Science and Technology, Bangladesh Open University How this Book is structured The course overview The course overview gives you a general introduction to the course. Information contained in the course overview will help you determine: If the course is suitable for you. What you will already need to know. What you can expect from the course. How much time you will need to invest to complete the course. The overview also provides guidance on: Study skills. Where to get help. Course assignments and assessments. Activity icons. Units. We strongly recommend that you read the overview carefully before starting your study. 1

Getting started with visual studio 2008 The course content Resources Your comments The course is broken down into units. Each unit comprises: An introduction to the unit content. Unit Objectives Unit outcomes. New terminology. Core content of the unit with a variety of learning activities. A unit summary. Assignments and/or assessments, as applicable. Answers to Assignment and/or assessment, as applicable For those interested in learning more on this subject, we provide you with a list of additional resources at the end of this book; these may be books, articles or web sites. After completing Visual Programming we would appreciate it if you would take a few moments to give us your feedback on any aspect of this course. Your feedback might include comments on: Course content and structure. Course reading materials and resources. Course assignments. Course assessments. Course duration. Course support (assigned tutors, technical help, etc.) Your constructive feedback will help us to improve and enhance this course. 2

Visual Programming Course overview Visual Programming Course Code: DCSA1304 Credit hour: 3 hours Course outcomes Upon completion of Visual programming you will be able to: Install Visual Studio 2008. Design Form. Outcomes Use Intrinsic controls. Use Loop statement. Use Function. Generate Report using Crystal Report. Timeframe This course will take approximately 20 weeks of study time. How long? 3

Getting started with visual studio 2008 Need help? Help 1. The tutor at your study center. 2. Mohammad Mamunur Rashid Assistant Professor School of Science and Technology Bangladesh Open University Gazipur-1705 e-mail: mamunbou@gmail.com Mobile:01716-115139 Assignments There are Two (2) assignments for this course. Assignments should be submitted to your course tutor. Assignments Schedule for submitting assignments: First one during the middle of semester and another one is the last tutorial sessions of the semester. Assessments Assessments Assessment will be followed in this course are - Assignment 1 5% Assignment 2 5% Semester Final Examination 70% Practical Examination 20% Getting around this book Margin icons While working through this book you will notice the frequent use of margin icons. These icons serve to signpost a particular piece of text, a 4

Visual Programming new task or change in activity; they have been included to help you to find your way around this book. A complete icon set is shown below. We suggest that you familiarize yourself with the icons and their meaning before starting your study. Activity Assessment Assignment Case study Discussion Group activity Help Note it! Outcomes Reading Reflection Study skills Summary Terminology Time Tip Computer- Based Learning Audio Video Feedback Objectives Basic Competence Answers to Assessments 5