Visual Studio.NET for AutoCAD Programmers

Size: px
Start display at page:

Download "Visual Studio.NET for AutoCAD Programmers"

Transcription

1 December 2-5, 2003 MGM Grand Hotel Las Vegas Visual Studio.NET for AutoCAD Programmers Speaker Name: Andrew G. Roe, P.E. Class Code: CP32-3 Class Description: In this class, we'll introduce the Visual Studio.NET environment, including VB.NET, C#.NET, and C++.NET, and discuss how AutoCAD programmers can tap into the multi-language platform. Using.NET, developers have a new alternative to automate AutoCAD and more readily exchange code, develop Internetbased applications, and build more sophisticated programs. Class Outline: Introduction to VS.NET Overview of the.net Environment Building a.net Application Converting an Existing VB Application to.net Other Possibilities Getting More Information About the Speaker: Andrew G. Roe is a registered civil engineer and president of AGR Associates, Inc., a technology consulting firm based in Minneapolis, MN. He has over 18 years of experience in engineering, computer applications, and technical writing, and is the author of Using Visual Basic with AutoCAD, published by Autodesk Press. He has developed and documented custom applications for numerous clients, developed training material for Microsoft and Autodesk products, and written regularly for Engineering News-Record and CADENCE magazines. AGRoe@AGRassociates.com

2 Introduction to VS.NET What Is VS.NET? Visual Studio.NET is an integrated set of development tools for building custom applications using Visual Basic.NET, Visual C#.NET, Visual C++.NET, and Visual J#.NET. The same integrated development environment (IDE) is used for all programming languages, which allows developers to share components and build multi-language solutions..net is built around a common language specification (CLS), which provides the same services to individual languages. Why Use It? VS.NET offers several advantages over previous programming environments: State-of-the-Art Programming Tools Multi-Language Solutions Internet Applications Mobile Applications The Wave of the Future Why Use It With AutoCAD? Drive AutoCAD with Stand-alone Applications (COM Interface) Develop ObjectARX Applications (Visual Studio 2002 with AutoCAD 2004) Take Advantage of Advanced Programming Tools Use Components Developed in Multi-Language Environments Prepare for the Future Hurdles Learning Curve Cost Language Summary Chart Below is a brief summary of the various languages included in VS.NET. Language VB.NET C#.NET C++.NET J#.NET Predecessor Visual Basic -- C++ J++ Year Introduced Key Characteristic Rapid Application Development (RAD) New Hybrid of C/C++ High-End Apps Web Apps 2

3 Overview of the.net Environment The IDE VS.NET provides a single IDE for all programming languages. It is similar to familiar IDEs such as that of Visual Basic 6.0, with a few differences. Some highlights: Form Designer Allows you to add controls to a form, arrange them, and write code for their events; much improved over VB 6, allowing you to easily resize, anchor, and dock forms; click tab above to switch to Code window. Properties window displays design-time properties and events of selected objects; click buttons above to sort and categorize. Solution Explorer Similar to the Project Explorer in VB; displays projects and their files; click buttons above to display code and forms. Toolbox displays controls and other items available for.net projects. The tabs and items available from the Toolbox change, depending upon the designer or editor currently in use. 3

4 Fundamentals Still Applicable While.NET includes numerous new concepts and tools, fundamentals from previous programming environments still apply. Here are some of the key terms of interest to AutoCAD programmers. Objects Generically Speaking In programming-speak, objects are building blocks for applications. Objects can be graphical items, such as forms, buttons, and text boxes, as well as code and data. In short, an object is something that acts as a unit. Objects AutoCAD Style In AutoCAD, a wide variety of application-specific objects are exposed, where they can be accessed programmatically. This includes tangible drawing objects, such as lines, arcs, and text, as well as other elements such as layers, groups, and viewports. These objects are all part of the AutoCAD Object Model. Discipline-specific products, such as Architectural Desktop, Land Desktop, and Mechanical Desktop, expose additional objects unique to each particular discipline. Properties and Methods Properties are attributes or characteristics of objects. Methods are functions that perform actions on an object. In a grammatical analogy, objects are nouns, properties are adjectives, and methods are verbs. Classes Classes are templates for creating objects. An object is a usable instance of a class. Each instance is a unique copy of its class. Events Events are actions recognized by an object. A mouse click is an event, as is the pressing of a key at the keyboard. AutoCAD has unique events, such as the modification of a drawing object and the saving of a drawing. Variables and Expressions Variables hold or store data in a specific memory location. Variables can represent numbers (Integer, Double, etc.), text (String), objects (Object, AcadLine, AcadText, etc.), dates (Date), and various other data types. Program Control and Logic While.NET offers some new twists in program control and logic, some of the familiar approaches still apply. For example, in VB.NET you still use the familiar If Then and Select Case structures to perform decision branching. Differences Between VB.NET and VB 6 (VB.NET is not VB 7!) Common Language Runtime (CLR) Source code is converted into Microsoft intermediate language (MSIL), a set of instructions that can be converted to native code. Some rework of the VB language was required to conform to CLS. Data Types Several new types; no more Variants; multiple variables declared on one line. 4 No Set Keyword Instead of Set MyObject =, it s just MyObject = Inheritance Allows you to define classes that serve as the basis for new classes. Exception Handling Replaces error handling; In VB. NET, Try Catch replaces On Error. Garbage Collection Automatically releases unused objects, optimizing memory management. Menu Editing Menus can be designed visually, much easier than in VB 6. Forms and Controls New IDE allows docking/anchoring of controls, unique controls, etc. Command Line Compiler Allows testing of code fragments outside the IDE. Others

5 Building a.net Application A VB.NET Example To demonstrate how to use.net with AutoCAD, the following example shows how to build a VB.NET application that starts AutoCAD, draws an AutoCAD entity, extracts some information about AutoCAD entities, and quits AutoCAD. 1. Start VS.NET to display the Start Page. 2. On the Start Page, click New Project to display the New Project dialog box. 3. In the New Project dialog box, select a project type of Visual Basic Projects, use the Windows Application template, specify a project name and location, and click OK. 4. In the Solution Explorer, right-click References and select Add Reference. 5

6 5. In the Add Reference dialog box, select the COM tab, then select AutoCAD 2004 type library. Click Select and OK to close the dialog box. 6. In the Code window, declare variables for the AutoCAD application object and a Boolean variable to track whether AutoCAD is running, as shown in the following code. Public Class Form1 Inherits System.Windows.Forms.Form Dim objacad As AutoCAD.AcadApplication Dim blnstarted As Boolean 7. In the Form Designer, insert four buttons named cmdconnect, cmddisconnect, cmddrawline, and cmdidentity, and arranged as shown below. 8. Double-click on the Connect to AutoCAD button and assign the code show below to it. This code checks to see if AutoCAD is running, and if not, starts it. Private Sub cmdconnect_click(byval sender As System.Object, ByVal e As _ System.EventArgs) Handles cmdconnect.click If blnstarted <> True Then Try objacad = GetObject(, "AutoCAD.Application.16") Catch exc As Exception objacad = CreateObject("AutoCAD.Application.16") End Try cmddisconnect.enabled = True cmddrawline.enabled = True cmdidentity.enabled = True blnstarted = True blnstarted = True MsgBox(objAcad.Name + vbcrlf + "Version " + objacad.version) objacad.visible = True End If End Sub 9. In a similar manner, assign the code shown below to the Quit AutoCAD button. This code executes the Quit method to close AutoCAD. Private Sub cmddisconnect_click(byval sender As System.Object, ByVal e As _ System.EventArgs) Handles cmddisconnect.click If blnstarted = True Then objacad.quit() objacad = Nothing Me.Close() End If End Sub 10. Assign the following code to the Draw Line button and allow the user to draw a line. 6

7 Private Sub cmddrawline_click(byval sender As System.Object, ByVal e As _ System.EventArgs) Handles cmddrawline.click Dim dblstartpoint(2) As Double Dim dblendpoint(2) As Double Dim objmyline As AutoCAD.AcadLine dblstartpoint(0) = 0 dblstartpoint(1) = 0 dblstartpoint(2) = 0 dblendpoint(0) = 5 dblendpoint(1) = 5 dblendpoint(2) = 0 objmyline = objacad.activedocument.modelspace.addline(dblstartpoint,_ dblendpoint) objacad.zoomextents() End Sub 11. Assign the following code to the ID Entity button and allow the user to determine an entity type. Private Sub cmdidentity_click(byval sender As System.Object, ByVal e As _ System.EventArgs) Handles cmdidentity.click Dim objent As AutoCAD.AcadEntity Dim objpoint As Object objacad.activedocument.utility.getentity(objent, objpoint, "Select _ an object.") MsgBox("The object name is: " & objent.objectname) End Sub 12. Add the following code to the Form Load event. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As _ System.EventArgs) Handles MyBase.Load blnstarted = False cmddisconnect.enabled = False cmddrawline.enabled = False cmdidentity.enabled = False End Sub 13. Run the program and click the Start AutoCAD button to activate AutoCAD. 14. Click the Draw Line button to create a line, followed by the ID Entity button to obtain information about the entity. 15.Click the Quit AutoCAD button to close AutoCAD. The Same Example in C# To build the same example in C#, the procedure is similar. When selecting a project type, select Visual C# Projects. The equivalent code segments in C# are as follows. public class Form1 : System.Windows.Forms.Form private AcadApplication objacad; private AcadDocument objacaddoc; bool started; 7

8 private void cmdconnect_click(object sender, System.EventArgs e) if (started) return; try objacad=(acadapplication)marshal.getactiveobject("autocad.application.16"); started = true; catch try objacad = new AutoCAD.AcadApplicationClass(); objacad.visible = true; started = true; catch throw; cmddisconnect.enabled = true; cmddrawline.enabled = true; cmdidentity.enabled = true; private void cmddisconnect_click(object sender, System.EventArgs e) if(started) objacad.quit(); started = false; cmddisconnect.enabled = false; cmddrawline.enabled = false; cmdidentity.enabled = false; private void cmddrawline_click(object sender, System.EventArgs e) if (!started) return; double[] StartPoint = new double[3]; double[] EndPoint = new double[3]; StartPoint[0] = 0; StartPoint[1] = 0; StartPoint[2] = 0; EndPoint[0] = 5; EndPoint[1] = 5; EndPoint[2] = 0; objacad.activedocument.modelspace.addline(startpoint, EndPoint); objacad.zoomextents(); 8

9 private void cmdidentity_click(object sender, System.EventArgs e) Object objent = new Object(); Object objpoint = new Object(); objacad.activedocument.utility.getentity(out objent, out objpoint, "Select an object"); AcadEntity ent; ent = (AcadEntity)objEnt; MessageBox.Show("The object name is: " + ent.objectname); private void Form1_Load(object sender, System.EventArgs e) cmddisconnect.enabled = false; cmddrawline.enabled = false; cmdidentity.enabled = false; 9

10 Converting a VB Application to.net VB.NET includes an Upgrade Wizard to convert programs developed in VB 6.0. The steps for using the Upgrade Wizard are as follows. 1. Start VS.NET. From the File menu, select Open>Project. 2. In the Open Project dialog box, select a Visual Basic 6.0 project (.vbp) file. This launches the Visual Basic Upgrade Wizard. 3. Click Next to display the second page of the wizard, and choose from the available upgrade options. 4. On the third page of the wizard, enter the location where the new project will be created. 5. On the fourth page of the wizard, click Next to begin the upgrade process. 6. In Solution Explorer, double-click the _UpgradeReport.htm node to open the upgrade report. 7. Review the upgrade report and fix any errors. Examine warnings to ensure they do not affect application behavior. 8. On the Debug menu, choose Start. Run the application and make sure the behavior is the same as it was in Visual Basic

11 Other Possibilities ObjectARX ObjectARX TM (AutoCAD Runtime Extension) is a compiled-language programming environment for developing AutoCAD applications. Using ObjectARX, you can create applications that run in the same address space as AutoCAD and operate directly with core AutoCAD data structures and code. This allows you to create custom AutoCAD objects and new commands that operate exactly the same way as native AutoCAD commands. You can use VS.NET to develop ObjectARX applications for AutoCAD VS.NET 2002 is the only version currently supported. VS.NET 2003 is not supported due to compatibility problems. You must use Visual C when building ObjectARX applications for AutoCAD 2000, 2000i or Developing Multi-Language Applications Because the VS.NET framework provides a common application programming interface (API) for all of its programming languages, developers can choose which language to use. A VS.NET solution can contain components from multiple languages, meaning you could have a component developed in VB.NET, along with another component developed in C#.NET, and another developed in C++.NET all part of the same solution. On large projects with multiple developers skilled in different languages, this opens up new doors for collaboration. Internet Applications VS.NET greatly simplifies development of distributed Internet applications. It allows you to create Web Forms, which are used to create programmable Web pages. Using Web Forms, you can create Web pages by dragging and dropping controls onto the designer and then adding code, similar to the way that you create Visual Basic forms. VS.NET also allows you to create XML Web services applications that can receive requests and data using Extensible Markup Language (XML) over the Internet. XML provides a method for describing structured data and exchanging data across disparate applications. VS.NET includes an XML Designer to help edit XML and create XML schemas. Future Possibilities Autodesk is actively pursuing the development of a native.net interface for a future release of AutoCAD. This holds the promise of delivering the power of ObjectARX through the more userfriendly VB.NET. 11

12 Getting More Information Online Help The VS.NET online help system includes a vast amount of information about using the product, including sample code, links to Web sites, and more. Compared with earlier online help systems, it can be a bit intimidating initially due to the volume of information, but use it frequently to get comfortable with it. From the Help menu, select one of the following: Dynamic Help to get help on the current operation Contents a list of topics arranged hierarchically Index a list of topics arranged alphabetically Search to search for a specific topic or question Microsoft Web Sites Information can be found in several locations. A good starting place is the Microsoft Knowledge Base. Another is a special site set up for.net developers. Online videos are also available. Autodesk Web Sites Autodesk-specific sites about.net are still in development, but some information is available on discussion groups and the Autodesk Support page. Autodesk Developer Network (ADN) members have access to additional information via the Knowledge Base for ADN members. (Discussion Groups) (Support) Independent Web Sites A variety are available, and the landscape changes often. Use an Internet search engine to take a peek. Periodicals Electronic and print magazines are available. Here are a couple of popular ones. (Visual Studio Magazine) (a clearinghouse of developer information) Books Many VS.NET books are available. Check your local bookstore or online source. 12

Unit 1: Visual Basic.NET and the.net Framework

Unit 1: Visual Basic.NET and the.net Framework 1 Chapter1: Visual Basic.NET and the.net Framework Unit 1: Visual Basic.NET and the.net Framework Contents Introduction to.net framework Features Common Language Runtime (CLR) Framework Class Library(FCL)

More information

TRAINING GUIDE FOR OPC SYSTEMS.NET. Simple steps to successful development and deployment. Step by Step Guide

TRAINING GUIDE FOR OPC SYSTEMS.NET. Simple steps to successful development and deployment. Step by Step Guide TRAINING GUIDE FOR OPC SYSTEMS.NET Simple steps to successful development and deployment. Step by Step Guide SOFTWARE DEVELOPMENT TRAINING OPC Systems.NET Training Guide Open Automation Software Evergreen,

More information

To get started with Visual Basic 2005, I recommend that you jump right in

To get started with Visual Basic 2005, I recommend that you jump right in In This Chapter Chapter 1 Wading into Visual Basic Seeing where VB fits in with.net Writing your first Visual Basic 2005 program Exploiting the newfound power of VB To get started with Visual Basic 2005,

More information

Developing Microsoft.NET Applications for Windows (Visual Basic.NET)

Developing Microsoft.NET Applications for Windows (Visual Basic.NET) Developing Microsoft.NET Applications for Windows (Visual Basic.NET) Course Number: 2565 Length: 5 Day(s) Certification Exam This course will help you prepare for the following Microsoft Certified Professional

More information

COPYRIGHTED MATERIAL. Visual Basic: The Language. Part 1

COPYRIGHTED MATERIAL. Visual Basic: The Language. Part 1 Part 1 Visual Basic: The Language Chapter 1: Getting Started with Visual Basic 2010 Chapter 2: Handling Data Chapter 3: Visual Basic Programming Essentials COPYRIGHTED MATERIAL Chapter 1 Getting Started

More information

A NET Refresher

A NET Refresher .NET Refresher.NET is the latest version of the component-based architecture that Microsoft has been developing for a number of years to support its applications and operating systems. As the name suggests,.net

More information

CT862 Section 1 Introduction

CT862 Section 1 Introduction CT862 Section 1 Introduction VB.NET: VB introduced in 1991 Provided the first easily accessible means of writing Windows applications o The VB IDE was inherently graphical and mirrored the Windows OS itself

More information

Skill Area 336 Explain Essential Programming Concept. Programming Language 2 (PL2)

Skill Area 336 Explain Essential Programming Concept. Programming Language 2 (PL2) Skill Area 336 Explain Essential Programming Concept Programming Language 2 (PL2) 336.1-Examine Basic Language Environment 336.1.1 Describe the basic operating environment of the language 336.1.2 Define

More information

Interacting with External Applications

Interacting with External Applications Interacting with External Applications DLLs - dynamic linked libraries: Libraries of compiled procedures/functions that applications link to at run time DLL can be updated independently of apps using them

More information

UNIT 1. Introduction to Microsoft.NET framework and Basics of VB.Net

UNIT 1. Introduction to Microsoft.NET framework and Basics of VB.Net UNIT 1 Introduction to Microsoft.NET framework and Basics of VB.Net 1 SYLLABUS 1.1 Overview of Microsoft.NET Framework 1.2 The.NET Framework components 1.3 The Common Language Runtime (CLR) Environment

More information

Welcome Application. Introducing the Visual Studio.NET IDE. Objectives. Outline

Welcome Application. Introducing the Visual Studio.NET IDE. Objectives. Outline 2 T U T O R I A L Objectives In this tutorial, you will learn to: Navigate Visual Studio.NET s Start Page. Create a Visual Basic.NET solution. Use the IDE s menus and toolbars. Manipulate windows in the

More information

Developing Microsoft.NET Applications for Windows (Visual Basic.NET)

Developing Microsoft.NET Applications for Windows (Visual Basic.NET) Developing Microsoft.NET Applications for Windows (Visual Basic.NET) Course Number: 2555 Length: 1 Day(s) Certification Exam This course will help you prepare for the following Microsoft Certified Professional

More information

DEVELOPING OBJECT ORIENTED APPLICATIONS

DEVELOPING OBJECT ORIENTED APPLICATIONS DEVELOPING OBJECT ORIENTED APPLICATIONS By now, everybody should be comfortable using form controls, their properties, along with methods and events of the form class. In this unit, we discuss creating

More information

GUI Design and Event- Driven Programming

GUI Design and Event- Driven Programming 4349Book.fm Page 1 Friday, December 16, 2005 1:33 AM Part 1 GUI Design and Event- Driven Programming This Section: Chapter 1: Getting Started with Visual Basic 2005 Chapter 2: Visual Basic: The Language

More information

1. Create your First VB.Net Program Hello World

1. Create your First VB.Net Program Hello World 1. Create your First VB.Net Program Hello World 1. Open Microsoft Visual Studio and start a new project by select File New Project. 2. Select Windows Forms Application and name it as HelloWorld. Copyright

More information

Microsoft.NET: The Overview

Microsoft.NET: The Overview 2975ch01.qxd 01/03/02 10:55 AM Page 1 Part I Microsoft.NET: The Overview Chapter 1: Chapter 2: What Is.NET? Microsoft s End-to-End Mobile Strategy COPYRIGHTED MATERIAL 2975ch01.qxd 01/03/02 10:55 AM Page

More information

Part I. Integrated Development Environment. Chapter 2: The Solution Explorer, Toolbox, and Properties. Chapter 3: Options and Customizations

Part I. Integrated Development Environment. Chapter 2: The Solution Explorer, Toolbox, and Properties. Chapter 3: Options and Customizations Part I Integrated Development Environment Chapter 1: A Quick Tour Chapter 2: The Solution Explorer, Toolbox, and Properties Chapter 3: Options and Customizations Chapter 4: Workspace Control Chapter 5:

More information

Getting started 7. Setting properties 23

Getting started 7. Setting properties 23 Contents 1 2 3 Getting started 7 Introduction 8 Installing Visual Basic 10 Exploring the IDE 12 Starting a new project 14 Adding a visual control 16 Adding functional code 18 Saving projects 20 Reopening

More information

Upgrading Applications

Upgrading Applications C0561587x.fm Page 77 Thursday, November 15, 2001 2:37 PM Part II Upgrading Applications 5 Your First Upgrade 79 6 Common Tasks in Visual Basic.NET 101 7 Upgrading Wizard Ins and Outs 117 8 Errors, Warnings,

More information

INFORMATICS LABORATORY WORK #2

INFORMATICS LABORATORY WORK #2 KHARKIV NATIONAL UNIVERSITY OF RADIO ELECTRONICS INFORMATICS LABORATORY WORK #2 SIMPLE C# PROGRAMS Associate Professor A.S. Eremenko, Associate Professor A.V. Persikov 2 Simple C# programs Objective: writing

More information

Introduction. In this preliminary chapter, we introduce a couple of topics we ll be using DEVELOPING CLASSES

Introduction. In this preliminary chapter, we introduce a couple of topics we ll be using DEVELOPING CLASSES Introduction In this preliminary chapter, we introduce a couple of topics we ll be using throughout the book. First, we discuss how to use classes and object-oriented programming (OOP) to aid in the development

More information

Tutorial 03 understanding controls : buttons, text boxes

Tutorial 03 understanding controls : buttons, text boxes Learning VB.Net Tutorial 03 understanding controls : buttons, text boxes Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple

More information

Getting Started With AutoCAD Civil 3D.Net Programming

Getting Started With AutoCAD Civil 3D.Net Programming Getting Started With AutoCAD Civil 3D.Net Programming Josh Modglin Advanced Technologies Solutions CP1497 Have you ever wanted to program and customize AutoCAD Civil 3D but cannot seem to make the jump

More information

Visual Basic 2008 The programming part

Visual Basic 2008 The programming part Visual Basic 2008 The programming part Code Computer applications are built by giving instructions to the computer. In programming, the instructions are called statements, and all of the statements that

More information

Chapter 2 Exploration of a Visual Basic.Net Application

Chapter 2 Exploration of a Visual Basic.Net Application Chapter 2 Exploration of a Visual Basic.Net Application We will discuss in this chapter the structure of a typical Visual Basic.Net application and provide you with a simple project that describes the

More information

CIS 3260 Intro. to Programming with C#

CIS 3260 Intro. to Programming with C# Introduction to Programming and Visual C# 2008 McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Describe the process of visual program design and development Explain the term object-oriented

More information

Microsoft Visual Basic 2005: Reloaded

Microsoft Visual Basic 2005: Reloaded Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 1 An Introduction to Visual Basic 2005 Objectives After studying this chapter, you should be able to: Explain the history of programming languages

More information

Migration Made Easy! Speaker: Bud Schroeder, Autodesk Inc.

Migration Made Easy! Speaker: Bud Schroeder, Autodesk Inc. November 30 December 3, 2004 Las Vegas, Nevada Speaker: Bud Schroeder, Autodesk Inc. IT32-1 This presentation will focus on how to use existing built-in AutoCAD tools to migrate your customization from

More information

Fundamental C# Programming

Fundamental C# Programming Part 1 Fundamental C# Programming In this section you will find: Chapter 1: Introduction to C# Chapter 2: Basic C# Programming Chapter 3: Expressions and Operators Chapter 4: Decisions, Loops, and Preprocessor

More information

Konark - Writing a KONARK Sample Application

Konark - Writing a KONARK Sample Application icta.ufl.edu http://www.icta.ufl.edu/konarkapp.htm Konark - Writing a KONARK Sample Application We are now going to go through some steps to make a sample application. Hopefully I can shed some insight

More information

Using the TekScope IVI-COM Driver from C#.NET

Using the TekScope IVI-COM Driver from C#.NET Using the TekScope IVI-COM Driver from C#.NET Introduction This document describes the step-by-step procedure for using the TekScope IVI- COM driver from a.net environment using C#. Microsoft.Net supports

More information

Learning VB.Net. Tutorial 19 Classes and Inheritance

Learning VB.Net. Tutorial 19 Classes and Inheritance Learning VB.Net Tutorial 19 Classes and Inheritance Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you

More information

Introduction to.net Framework and Visual Studio 2013 IDE MIT 31043, Rapid Application Development By: S. Sabraz Nawaz

Introduction to.net Framework and Visual Studio 2013 IDE MIT 31043, Rapid Application Development By: S. Sabraz Nawaz Introduction to.net Framework and Visual Studio 2013 IDE MIT 31043, Rapid Application Development By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty of Management and Commerce Rapid Application

More information

IMS1906: Business Software Fundamentals Tutorial exercises Week 5: Variables and Constants

IMS1906: Business Software Fundamentals Tutorial exercises Week 5: Variables and Constants IMS1906: Business Software Fundamentals Tutorial exercises Week 5: Variables and Constants These notes are available on the IMS1906 Web site http://www.sims.monash.edu.au Tutorial Sheet 4/Week 5 Please

More information

Darshan Institute of Engineering & Technology for Diploma Studies

Darshan Institute of Engineering & Technology for Diploma Studies Overview of Microsoft.Net Framework: The Dot Net or.net is a technology that is an outcome of Microsoft s new strategy to develop window based robust applications and rich web applications and to keep

More information

Department of Computer Applications

Department of Computer Applications MCA 512:.NET framework and C# [Part I : Medium Answer type Questions] Unit - 1 Q1. What different tools are available and used to develop.net Applications? Hint a).net Framework SDK b) ASP.NET Web Matrix

More information

ADO.NET 2.0. database programming with

ADO.NET 2.0. database programming with TRAINING & REFERENCE murach s ADO.NET 2.0 database programming with (Chapter 3) VB 2005 Thanks for downloading this chapter from Murach s ADO.NET 2.0 Database Programming with VB 2005. We hope it will

More information

Migrating from Autodesk Land Desktop to Autodesk Civil 3D CV42-3L

Migrating from Autodesk Land Desktop to Autodesk Civil 3D CV42-3L December 2-5, 2003 MGM Grand Hotel Las Vegas Migrating from Autodesk Land Desktop to Autodesk Civil 3D CV42-3L About the Speaker: Pete Kelsey is an Autodesk Authorized Consultant an Autodesk Certified

More information

A Complete Tutorial for Beginners LIEW VOON KIONG

A Complete Tutorial for Beginners LIEW VOON KIONG I A Complete Tutorial for Beginners LIEW VOON KIONG Disclaimer II Visual Basic 2008 Made Easy- A complete tutorial for beginners is an independent publication and is not affiliated with, nor has it been

More information

Custom Tables with the LandXML Report Extension David Zavislan, P.E.

Custom Tables with the LandXML Report Extension David Zavislan, P.E. December 2-5, 2003 MGM Grand Hotel Las Vegas Custom Tables with the LandXML Report Extension David Zavislan, P.E. CV41-2 Learn some basic concepts of LandXML and the extensible Stylesheet Language (XSL)

More information

Business Insight Authoring

Business Insight Authoring Business Insight Authoring Getting Started Guide ImageNow Version: 6.7.x Written by: Product Documentation, R&D Date: August 2016 2014 Perceptive Software. All rights reserved CaptureNow, ImageNow, Interact,

More information

A Quick Tour GETTING STARTED WHAT S IN THIS CHAPTER?

A Quick Tour GETTING STARTED WHAT S IN THIS CHAPTER? 1 A Quick Tour WHAT S IN THIS CHAPTER? Installing and getting started with Visual Studio 2012 Creating and running your fi rst application Debugging and deploying an application Ever since software has

More information

New programming language introduced by Microsoft contained in its.net technology Uses many of the best features of C++, Java, Visual Basic, and other

New programming language introduced by Microsoft contained in its.net technology Uses many of the best features of C++, Java, Visual Basic, and other C#.NET? New programming language introduced by Microsoft contained in its.net technology Uses many of the best features of C++, Java, Visual Basic, and other OO languages. Small learning curve from either

More information

CS708 Lecture Notes. Visual Basic.NET Object-Oriented Programming. Implementing Client/Server Architectures. Part (I of?) (Lecture Notes 5A)

CS708 Lecture Notes. Visual Basic.NET Object-Oriented Programming. Implementing Client/Server Architectures. Part (I of?) (Lecture Notes 5A) CS708 Lecture Notes Visual Basic.NET Object-Oriented Programming Implementing Client/Server Architectures Part (I of?) (Lecture Notes 5A) Professor: A. Rodriguez CHAPTER 1 IMPLEMENTING CLIENT/SERVER APPLICATIONS...

More information

FOR 240 Homework Assignment 4 Using DBGridView and Other VB Controls to Manipulate Database Introduction to Computing in Natural Resources

FOR 240 Homework Assignment 4 Using DBGridView and Other VB Controls to Manipulate Database Introduction to Computing in Natural Resources FOR 240 Homework Assignment 4 Using DBGridView and Other VB Controls to Manipulate Database Introduction to Computing in Natural Resources This application demonstrates how a DataGridView control can be

More information

2609 : Introduction to C# Programming with Microsoft.NET

2609 : Introduction to C# Programming with Microsoft.NET 2609 : Introduction to C# Programming with Microsoft.NET Introduction In this five-day instructor-led course, developers learn the fundamental skills that are required to design and develop object-oriented

More information

Integrating Microsoft Access with AutoCAD VBA dave espinosa-aguilar Toxic Frog Multimedia

Integrating Microsoft Access with AutoCAD VBA dave espinosa-aguilar Toxic Frog Multimedia November 30 December 3, 2004 Las Vegas, Nevada Integrating Microsoft Access with AutoCAD VBA dave espinosa-aguilar Toxic Frog Multimedia CP32-3 Course Description: For years AutoCAD users have been trying

More information

CX-Server OPC User Manual

CX-Server OPC User Manual CX-Server OPC User Manual Guide to using CX-Server OPC in Microsoft.Net Page 1 Notice OMRON products are manufactured for use according to proper procedures by a qualified operator and only for the purposes

More information

VB.NET. Exercise 1: Creating Your First Application in Visual Basic.NET

VB.NET. Exercise 1: Creating Your First Application in Visual Basic.NET VB.NET Module 1: Getting Started This module introduces Visual Basic.NET and explains how it fits into the.net platform. It explains how to use the programming tools in Microsoft Visual Studio.NET and

More information

Chapter 12 Microsoft Assemblies. Software Architecture Microsoft Assemblies 1

Chapter 12 Microsoft Assemblies. Software Architecture Microsoft Assemblies 1 Chapter 12 Microsoft Assemblies 1 Process Phases Discussed in This Chapter Requirements Analysis Design Framework Architecture Detailed Design Key: x = main emphasis x = secondary emphasis Implementation

More information

Building Windows Applications with.net. Allan Laframboise Shelly Gill

Building Windows Applications with.net. Allan Laframboise Shelly Gill Building Windows Applications with.net Allan Laframboise Shelly Gill Introduction Who are we? Who are you? What is your experience Developing with ArcGIS Desktop, Engine and Server ArcGIS 8.x, 9.x and

More information

Event-based Programming

Event-based Programming Window-based programming Roger Crawfis Most modern desktop systems are window-based. What location do I use to set this pixel? Non-window based environment Window based environment Window-based GUI s are

More information

Text box. Command button. 1. Click the tool for the control you choose to draw in this case, the text box.

Text box. Command button. 1. Click the tool for the control you choose to draw in this case, the text box. Visual Basic Concepts Hello, Visual Basic See Also There are three main steps to creating an application in Visual Basic: 1. Create the interface. 2. Set properties. 3. Write code. To see how this is done,

More information

Programming Microsoft Visual C# 2005: The Base Class Library (Developer Reference) By Francesco Balena 196

Programming Microsoft Visual C# 2005: The Base Class Library (Developer Reference) By Francesco Balena 196 Programming Microsoft Visual C# 2005: The Base Class Library (Developer Reference) By Francesco Balena 196 Download code samples and examples for Windows 8, Microsoft Developer Network > Samples. These

More information

Introduction to.net Framework and Visual Studio 2013 IDE MIT 31043, Visual Programming By: S. Sabraz Nawaz

Introduction to.net Framework and Visual Studio 2013 IDE MIT 31043, Visual Programming By: S. Sabraz Nawaz Introduction to.net Framework and Visual Studio 2013 IDE MIT 31043, Visual Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT Faculty of Management and Commerce South Eastern University

More information

Team Developer 6.1. Configure the color-coding in the Tools Preferences dialog under the Outline tab.

Team Developer 6.1. Configure the color-coding in the Tools Preferences dialog under the Outline tab. Team Developer New Features : Team Developer 6.1 IDE Features: Team Developer 6.1 Color-coded Source Code The source code in the IDE is now color-coded. You can customize the colors of each of the following

More information

DOWNLOAD PDF VISUAL STUDIO 2008 LEARNING GUIDE

DOWNLOAD PDF VISUAL STUDIO 2008 LEARNING GUIDE Chapter 1 : Visual Studio Express - C++ Tutorials Visual Studio Important! Selecting a language below will dynamically change the complete page content to that language. Premier Knowledge Solutions offers

More information

2. A GUI A. uses buttons, menus, and icons B. should be easy for a user to manipulate C. both (a) and (b) D. stands for Graphic Use Interaction

2. A GUI A. uses buttons, menus, and icons B. should be easy for a user to manipulate C. both (a) and (b) D. stands for Graphic Use Interaction 1. Which language is not a true object-oriented programming language? A. VB 6 B. VB.NET C. JAVA D. C++ 2. A GUI A. uses buttons, menus, and icons B. should be easy for a user to manipulate C. both (a)

More information

TRAINING GUIDE FOR OPC SYSTEMS.NET. Simple steps to successful development and deployment. Step by Step Guide

TRAINING GUIDE FOR OPC SYSTEMS.NET. Simple steps to successful development and deployment. Step by Step Guide TRAINING GUIDE FOR OPC SYSTEMS.NET Simple steps to successful development and deployment. Step by Step Guide SOFTWARE DEVELOPMENT TRAINING OPC Systems.NET Training Guide Open Automation Software Evergreen,

More information

Introduction to Programming Microsoft.NET Framework Applications with Microsoft Visual Studio 2005 Course #MS4994A 5 Days COURSE OUTLINE

Introduction to Programming Microsoft.NET Framework Applications with Microsoft Visual Studio 2005 Course #MS4994A 5 Days COURSE OUTLINE COURSE OVERVIEW This five-day instructor-led course enables introductorylevel developers who are not familiar with the Microsoft.NET Framework or Microsoft Visual Studio 2005 to gain familiarity with the

More information

REVIEW OF CHAPTER 1 1

REVIEW OF CHAPTER 1 1 1 REVIEW OF CHAPTER 1 Trouble installing/accessing Visual Studio? 2 Computer a device that can perform calculations and make logical decisions much faster than humans can Computer programs a sequence of

More information

Appendix G: Writing Managed C++ Code for the.net Framework

Appendix G: Writing Managed C++ Code for the.net Framework Appendix G: Writing Managed C++ Code for the.net Framework What Is.NET?.NET is a powerful object-oriented computing platform designed by Microsoft. In addition to providing traditional software development

More information

CHAPTER 1 COPYRIGHTED MATERIAL. Finding Your Way in the Inventor Interface

CHAPTER 1 COPYRIGHTED MATERIAL. Finding Your Way in the Inventor Interface CHAPTER 1 Finding Your Way in the Inventor Interface COPYRIGHTED MATERIAL Understanding Inventor s interface behavior Opening existing files Creating new files Modifying the look and feel of Inventor Managing

More information

Chapter. Web Applications

Chapter. Web Applications Chapter Web Applications 144 Essential Visual Basic.NET fast Introduction Earlier versions of Visual Basic were excellent for creating applications which ran on a Windows PC, but increasingly there is

More information

Working with AutoCAD in Mixed Mac and PC Environment

Working with AutoCAD in Mixed Mac and PC Environment Working with AutoCAD in Mixed Mac and PC Environment Pavan Jella Autodesk AC6907 With the introduction of AutoCAD for Mac, some professionals now work in hybrid environments one engineer may draft designs

More information

Microsoft Visual C++.NET Professional Projects By Sripriya

Microsoft Visual C++.NET Professional Projects By Sripriya Microsoft Visual C++.NET Professional Projects By Sripriya If you are looking for the ebook Microsoft Visual C++.NET Professional Projects by Sripriya in pdf form, in that case you come on to loyal site.

More information

Chapter 12. OOP: Creating Object- Oriented Programs. McGraw-Hill. Copyright 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved.

Chapter 12. OOP: Creating Object- Oriented Programs. McGraw-Hill. Copyright 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 12 OOP: Creating Object- Oriented Programs McGraw-Hill Copyright 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. Objectives (1 of 2) Use object-oriented terminology correctly. Create

More information

Achieving Contentment with the AutoCAD Architecture Content Browser Douglas Bowers, AIA

Achieving Contentment with the AutoCAD Architecture Content Browser Douglas Bowers, AIA Achieving Contentment with the AutoCAD Architecture Content Browser Douglas Bowers, AIA AB110-3 If you have created AutoCAD Architecture (formerly ADT) object styles and want to know how to easily share

More information

IBM Rational Rhapsody Gateway Add On. User Manual

IBM Rational Rhapsody Gateway Add On. User Manual User Manual Rhapsody IBM Rational Rhapsody Gateway Add On User Manual License Agreement No part of this publication may be reproduced, transmitted, stored in a retrieval system, nor translated into any

More information

First Visual Basic Lab Paycheck-V1.0

First Visual Basic Lab Paycheck-V1.0 VISUAL BASIC LAB ASSIGNMENT #1 First Visual Basic Lab Paycheck-V1.0 Copyright 2013 Dan McElroy Paycheck-V1.0 The purpose of this lab assignment is to enter a Visual Basic project into Visual Studio and

More information

Introduction to.net Framework Week 1. Tahir Nawaz

Introduction to.net Framework Week 1. Tahir Nawaz Introduction to.net Framework Week 1 Tahir Nawaz .NET What Is It? Software platform Language neutral In other words:.net is not a language (Runtime and a library for writing and executing written programs

More information

Lecture 10 OOP and VB.Net

Lecture 10 OOP and VB.Net Lecture 10 OOP and VB.Net Pillars of OOP Objects and Classes Encapsulation Inheritance Polymorphism Abstraction Classes A class is a template for an object. An object will have attributes and properties.

More information

Lab 4: Introduction to Programming

Lab 4: Introduction to Programming _ Unit 2: Programming in C++, pages 1 of 9 Department of Computer and Mathematical Sciences CS 1410 Intro to Computer Science with C++ 4 Lab 4: Introduction to Programming Objectives: The main objective

More information

HOUR 4 Understanding Events

HOUR 4 Understanding Events HOUR 4 Understanding Events It s fairly easy to produce an attractive interface for an application using Visual Basic.NET s integrated design tools. You can create beautiful forms that have buttons to

More information

Introduction to Microsoft.NET Framework Programming using VS 2005 (C#)

Introduction to Microsoft.NET Framework Programming using VS 2005 (C#) Introduction to Microsoft.NET Framework Programming using VS 2005 (C#) Course Length: 5 Days Course Overview This instructor-led course teaches introductory-level developers who are not familiar with the

More information

Visual Basic Program Coding STEP 2

Visual Basic Program Coding STEP 2 Visual Basic Program Coding 129 STEP 2 Click the Start Debugging button on the Standard toolbar. The program is compiled and saved, and then is run on the computer. When the program runs, the Hotel Room

More information

Visual Basic 2008 Anne Boehm

Visual Basic 2008 Anne Boehm TRAINING & REFERENCE murach s Visual Basic 2008 Anne Boehm (Chapter 3) Thanks for downloading this chapter from Murach s Visual Basic 2008. We hope it will show you how easy it is to learn from any Murach

More information

Revision for Final Examination (Second Semester) Grade 9

Revision for Final Examination (Second Semester) Grade 9 Revision for Final Examination (Second Semester) Grade 9 Name: Date: Part 1: Answer the questions given below based on your knowledge about Visual Basic 2008: Question 1 What is the benefit of using Visual

More information

Departme and. Computer. CS Intro to. Science with. Objectives: The main. for a problem. of Programming. Syntax Set of rules Similar to.

Departme and. Computer. CS Intro to. Science with. Objectives: The main. for a problem. of Programming. Syntax Set of rules Similar to. _ Unit 2: Visual Basic.NET, pages 1 of 13 Departme ent of Computer and Mathematical Sciences CS 1408 Intro to Computer Science with Visual Basic.NET 4 Lab 4: Getting Started with Visual Basic.NET Programming

More information

Microsoft.NET Programming (C#, ASP.NET,ADO.NET, VB.NET, Crystal Report, Sql Server) Goal: Make the learner proficient in the usage of MS Technologies

Microsoft.NET Programming (C#, ASP.NET,ADO.NET, VB.NET, Crystal Report, Sql Server) Goal: Make the learner proficient in the usage of MS Technologies Microsoft.NET Programming (C#, ASP.NET,ADO.NET, VB.NET, Crystal Report, Sql Server) Goal: Make the learner proficient in the usage of MS Technologies for web applications development using ASP.NET, XML,

More information

PROGRAMMING WITH THE MICROSOFT.NET FRAMEWORK USING MICROSOFT VISUAL STUDIO 2005 Course No. MS4995A 5 Day PREREQUISITES COURSE OUTLINE

PROGRAMMING WITH THE MICROSOFT.NET FRAMEWORK USING MICROSOFT VISUAL STUDIO 2005 Course No. MS4995A 5 Day PREREQUISITES COURSE OUTLINE COURSE OVERVIEW This five-day instructor-led course enables developers who are migrating from a different development language, an earlier version of Visual Basic.NET or Visual C#, or who have completed

More information

M Introduction to Visual Basic.NET Programming with Microsoft.NET 5 Day Course

M Introduction to Visual Basic.NET Programming with Microsoft.NET 5 Day Course Module 1: Getting Started This module introduces Visual Basic.NET and explains how it fits into the.net platform. It explains how to use the programming tools in Microsoft Visual Studio.NET and provides

More information

Drawing an Integrated Circuit Chip

Drawing an Integrated Circuit Chip Appendix C Drawing an Integrated Circuit Chip In this chapter, you will learn how to use the following VBA functions to World Class standards: Beginning a New Visual Basic Application Opening the Visual

More information

INSTALLATION GUIDE. Trimble PipeDesigner 3D Software

INSTALLATION GUIDE. Trimble PipeDesigner 3D Software INSTALLATION GUIDE Trimble PipeDesigner 3D Software Revision A May 2015 F Englewood Office Trimble Navigation Limited 116 Inverness Drive East, Suite 210 Englewood, Colorado 80112 (800) 234-3758 Copyright

More information

Introduction to.net Framework

Introduction to.net Framework Introduction to.net Framework .NET What Is It? Software platform Language neutral In other words:.net is not a language (Runtime and a library for writing and executing written programs in any compliant

More information

Managing Content with AutoCAD DesignCenter

Managing Content with AutoCAD DesignCenter Managing Content with AutoCAD DesignCenter In This Chapter 14 This chapter introduces AutoCAD DesignCenter. You can now locate and organize drawing data and insert blocks, layers, external references,

More information

COPYRIGHTED MATERIAL. Part I The C# Ecosystem. ChapTEr 1: The C# Environment. ChapTEr 2: Writing a First Program

COPYRIGHTED MATERIAL. Part I The C# Ecosystem. ChapTEr 1: The C# Environment. ChapTEr 2: Writing a First Program Part I The C# Ecosystem ChapTEr 1: The C# Environment ChapTEr 2: Writing a First Program ChapTEr 3: Program and Code File Structure COPYRIGHTED MATERIAL 1The C# Environment What s in This ChapTEr IL and

More information

10262A VB: Developing Windows Applications with Microsoft Visual Studio 2010

10262A VB: Developing Windows Applications with Microsoft Visual Studio 2010 10262A VB: Developing Windows Applications with Microsoft Visual Studio 2010 Course Number: 10262A Course Length: 5 Days Course Overview In this course, experienced developers who know the basics of Windows

More information

Learning VB.Net. Tutorial 17 Classes

Learning VB.Net. Tutorial 17 Classes Learning VB.Net Tutorial 17 Classes Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you enjoy it. If

More information

Developing Windows Applications with Microsoft Visual Studio 2010

Developing Windows Applications with Microsoft Visual Studio 2010 Developing Windows Applications with Microsoft Visual Studio 2010 Course 10262A: Five days; Instructor-Led Course Description: In this course, experienced developers who know the basics of Windows Forms

More information

The following are required to duplicate the process outlined in this document.

The following are required to duplicate the process outlined in this document. Technical Note ClientAce WPF Project Example 1. Introduction Traditional Windows forms are being replaced by Windows Presentation Foundation 1 (WPF) forms. WPF forms are fundamentally different and designed

More information

AutoCAD Plus: What You Get When You Add.NET!

AutoCAD Plus: What You Get When You Add.NET! 11/30/2005-1:00 pm - 2:30 pm Room:N. Hemispheres (Salon E1) (Dolphin) Walt Disney World Swan and Dolphin Resort Orlando, Florida AutoCAD Plus: What You Get When You Add.NET! Clayton Hotson - Autodesk CP33-3

More information

Copyright. Trademarks Attachmate Corporation. All rights reserved. USA Patents Pending. WRQ ReflectionVisual Basic User Guide

Copyright. Trademarks Attachmate Corporation. All rights reserved. USA Patents Pending. WRQ ReflectionVisual Basic User Guide PROGRAMMING WITH REFLECTION: VISUAL BASIC USER GUIDE WINDOWS XP WINDOWS 2000 WINDOWS SERVER 2003 WINDOWS 2000 SERVER WINDOWS TERMINAL SERVER CITRIX METAFRAME CITRIX METRAFRAME XP ENGLISH Copyright 1994-2006

More information

Industrial Strength Add-Ins: Creating Commands in Autodesk Inventor

Industrial Strength Add-Ins: Creating Commands in Autodesk Inventor Industrial Strength Add-Ins: Creating Commands in Autodesk Inventor Brian Ekins Autodesk, Inc. DE211-4 This session focuses on techniques that will help you produce an industrial strength add-in application.

More information

Getting started 7. Setting properties 23

Getting started 7. Setting properties 23 Contents 1 2 3 Getting started 7 Introducing Visual Basic 8 Installing Visual Studio 10 Exploring the IDE 12 Starting a new project 14 Adding a visual control 16 Adding functional code 18 Saving projects

More information

M4.1-R4: APPLICATION OF.NET TECHNOLOGY

M4.1-R4: APPLICATION OF.NET TECHNOLOGY M4.1-R4: APPLICATION OF.NET TECHNOLOGY NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions. 2. PART ONE is to be answered in the OMR

More information

Las Vegas, Nevada, December 3 6, Kevin Vandecar. Speaker Name:

Las Vegas, Nevada, December 3 6, Kevin Vandecar. Speaker Name: Las Vegas, Nevada, December 3 6, 2002 Speaker Name: Kevin Vandecar Course Title: Introduction to Visual Basic Course ID: CP11-3 Session Overview: Introduction to Visual Basic programming is a beginning

More information

COPYRIGHTED MATERIAL. Starting Strong with Visual C# 2005 Express Edition

COPYRIGHTED MATERIAL. Starting Strong with Visual C# 2005 Express Edition 1 Starting Strong with Visual C# 2005 Express Edition Okay, so the title of this chapter may be a little over the top. But to be honest, the Visual C# 2005 Express Edition, from now on referred to as C#

More information

Program and Graphical User Interface Design

Program and Graphical User Interface Design CHAPTER 2 Program and Graphical User Interface Design OBJECTIVES You will have mastered the material in this chapter when you can: Open and close Visual Studio 2010 Create a Visual Basic 2010 Windows Application

More information

Visual Programming 1. What is Visual Basic? 2. What are different Editions available in VB? 3. List the various features of VB

Visual Programming 1. What is Visual Basic? 2. What are different Editions available in VB? 3. List the various features of VB Visual Programming 1. What is Visual Basic? Visual Basic is a powerful application development toolkit developed by John Kemeny and Thomas Kurtz. It is a Microsoft Windows Programming language. Visual

More information