Imports System.Data.SqlClient. Public Class Phonebook

Size: px
Start display at page:

Download "Imports System.Data.SqlClient. Public Class Phonebook"

Transcription

1 Imports System.Data.SqlClient Public Class Phonebook Dim vbdatabasedataset As New vbdatabasedataset() Dim PhonebookTableAdapter As New vbdatabasedatasettableadapters.phonebooktableadapter() Dim selection As ListViewItem Dim data_input(4) As TextBox Dim Stored_Data As DataTable Private Sub Phonebook_Load(sender As Object, e As EventArgs) Handles MyBase.Load Me.PhonebookTableAdapter.Fill(vbDataBaseDataSet.Phonebook) PopulateListview() data_input(0) = idtextbox data_input(1) = lntextbox data_input(2) = fntextbox data_input(3) = exttextbox data_input(4) = deptextbox Private Sub SetupListView() 'leave this the same' sqllistview.view = View.Details sqllistview.gridlines = True sqllistview.fullrowselect = True sqllistview.multiselect = False sqllistview.columns.add("id", 50, HorizontalAlignment.Left) sqllistview.columns.add("last_name", 150, HorizontalAlignment.Left) sqllistview.columns.add("first_name", 150, HorizontalAlignment.Left) sqllistview.columns.add("extension", 150, HorizontalAlignment.Left) sqllistview.columns.add("department", 150, HorizontalAlignment.Left) Private Sub retbut_click(sender As Object, e As EventArgs) Handles retbut.click Try selection = sqllistview.selecteditems(0) Catch ex As Exception End Try If selection Is Nothing Then MessageBox.Show("Error: Nothing has been selected.") Dim index = 0 data_input(0).text = sqllistview.selecteditems(0).text For Each item In selection.subitems data_input(index).text = item.text index += 1

2 data_input(0).readonly = True MessageBox.Show("Retrieved employee# " + selection.text) Private Sub upbut_click(sender As Object, e As EventArgs) Handles upbut.click If selection Is Nothing Then MessageBox.Show("Error: Nothing Selected") Dim index = 0 sqllistview.selecteditems(0).text = data_input(0).text Dim i As Integer = 0 For Each item In data_input selection.subitems(index).text = item.text index += 1 Stored_Data.Rows(selection.Index).Item(i) = data_input(i).text MessageBox.Show("Updated employee # " + selection.text) Sub PopulateListview() ' leave this the same Stored_Data = Me.PhonebookTableAdapter.GetData() For i As Integer = 0 To Stored_Data.Rows.Count() - 1 Dim dr As DataRow = Stored_Data.Rows(i) Dim listitem As ListViewItem = New ListViewItem(dr("ID").ToString()) listitem.subitems.add(dr("last_name").tostring()) listitem.subitems.add(dr("first_name").tostring()) listitem.subitems.add(dr("extension").tostring()) listitem.subitems.add(dr("department").tostring()) sqllistview.items.add(listitem) Private Sub delbut_click(sender As Object, e As EventArgs) Handles delbut.click retbut.enabled = False MessageBox.Show("row " + sqllistview.selectedindices(0).tostring() + " has been deleted") Stored_Data.Rows.RemoveAt(sqlListView.SelectedIndices(0)) sqllistview.items.remove(sqllistview.selecteditems(0)) Private Sub clearbutton_click(sender As Object, e As EventArgs) Handles clbut.click For Each control As Control In Me.Controls If TypeOf control Is TextBox Then control.text = "" sqllistview.selecteditems.clear()

3 retbut.enabled = False delbut.enabled = False idtextbox.readonly = False selection = Nothing Private Sub deptextbox_textchanged(sender As Object, e As EventArgs) Handles deptextbox.textchanged Private Sub crbut_click(sender As Object, e As EventArgs) Handles crbut.click If Not data_input(3).text.length = 4 Or Not IsNumeric(data_Input(3).Text) Then MessageBox.Show("Error: extension must be 4 digits, no more or less.") Dim new_id As Integer If Integer.TryParse(sqlListView.Items.Item(sqlListView.Items.Count - 1).Text, new_id) Then new_id += 1 sqllistview.items.add(new_id) Dim row As DataRow = Stored_Data.NewRow() row(0) = new_id For i As Integer = 1 To data_input.length - 1 sqllistview.items(sqllistview.items.count - 1).SubItems.Add(data_Input(i).Text) row(i) = data_input(i).text Stored_Data.Rows.Add(row) MessageBox.Show("New Employee created, employee# " + new_id.tostring()) If Not data_input(3).text.length = 4 Or Not IsNumeric(data_Input(3).Text) Then MessageBox.Show("Error: extension must be 4 digits, no more or less.") Dim new_id As Integer If Integer.TryParse(data_Input(0).Text, new_id) Then Dim error_flag = False For Each Item In sqllistview.items If Item.text = new_id.tostring() Then error_flag = True Exit For

4 If Not error_flag Then Dim last As Integer Integer.TryParse(sqlListView.Items(sqlListView.Items.Count - 1).Text, last) If new_id > last Then sqllistview.items.add(new_id) Dim row As DataRow = Stored_Data.NewRow() row(0) = new_id For i As Integer = 1 To data_input.length - 1 sqllistview.items(sqllistview.items.count - 1).SubItems.Add(data_Input(i).Text) row(i) = data_input(i).text Stored_Data.Rows.Add(row) MessageBox.Show("Created employee # " + new_id.tostring()) For Each id As ListViewItem In sqllistview.items Dim integer_id As Integer If Integer.TryParse(id.Text, integer_id) Then If integer_id > new_id Then sqllistview.items.insert(sqllistview.items.indexof(id), new_id) Dim row As DataRow = Stored_Data.NewRow() row(0) = new_id For i As Integer = 1 To data_input.length - 1 sqllistview.items(sqllistview.items.indexof(id) - 1).SubItems.Add(data_Input(i).Text) row(i) = data_input(i).text Stored_Data.Rows.InsertAt(row, sqllistview.items.indexof(id) - 1) MessageBox.Show("New employee created employee# " + new_id.tostring()) Exit For MessageBox.Show("Error: ID already in use!") MessageBox.Show("Error: ID must be a real number") Private Sub Try Me.Validate() Me.ValidateChildren() Me.PhonebookTableAdapter.Update(Me.Stored_Data) Catch ex As Exception MessageBox.Show("An error has prevented the database from updating!" + ex.tostring())

5 End Try Private Sub sqllistview_selectedindexchanged(sender As Object, e As EventArgs) Handles sqllistview.selectedindexchanged If Not sqllistview.selecteditems.count = 0 Then retbut.enabled = True delbut.enabled = True Private Sub idtextbox_textchanged(sender As Object, e As EventArgs) Handles idtextbox.textchanged Private Sub lntextbox_textchanged(sender As Object, e As EventArgs) Handles lntextbox.textchanged Private Sub fntextbox_textchanged(sender As Object, e As EventArgs) Handles fntextbox.textchanged Private Sub exttextbox_textchanged(sender As Object, e As EventArgs) Handles exttextbox.textchanged

6 End Class

Lampiran 1 Kode Program

Lampiran 1 Kode Program 53 Lampiran 1 Kode Program Kode Program 1 Kode Menu Peminjaman Private Sub BT_Cari_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_Cari.Click Call CariKaset() Private Sub RB_CheckedChanged(ByVal

More information

Database Tutorials

Database Tutorials Database Tutorials Hello everyone welcome to database tutorials. These are going to be very basic tutorials about using the database to create simple applications, hope you enjoy it. If you have any notes

More information

Déclaration du module

Déclaration du module Déclaration du module Imports System.IO Module ModuleStagiaires Public Structure Stagiaire Private m_code As Long Private m_nom As String Private m_prenom As String Public Property code() As Long Get Return

More information

For this example, we will set up a small program to display a picture menu for a fast food take-away shop.

For this example, we will set up a small program to display a picture menu for a fast food take-away shop. 146 Programming with C#.NET 9 Fast Food This program introduces the technique for uploading picture images to a C# program and storing them in a database table, in a similar way to text or numeric data.

More information

...ic Programming\Mystery Escape\Mystery Escape\frmEscape.vb

...ic Programming\Mystery Escape\Mystery Escape\frmEscape.vb ...ic Programming\Mystery Escape\Mystery Escape\frmEscape.vb 1 1 Option Strict On 2 3 Public Class frmescape 4 5 ' Class variables. 6 7 Private _intonehour As Integer = 1 8 Private _inttwohour As Integer

More information

Updated: Saturday, November 29, 2014 Page 1

Updated: Saturday, November 29, 2014 Page 1 ' Copyright 2013 Safe T Services - All Rights Reserved '=========================================================================================== 'Changed by Change Date Change Tag ' Description of Change

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

MCAD/MCSD Developing and Implementing Web Applications with Visual Basic.NET and Visual Studio.NET Training Guide: Exam

MCAD/MCSD Developing and Implementing Web Applications with Visual Basic.NET and Visual Studio.NET Training Guide: Exam MCAD/MCSD Developing and Implementing Web Applications with Visual Basic.NET and Visual Studio.NET Training Guide: Exam 70-305 Copyright 2003 by Que Publishing International Standard Book Number: 0789728184

More information

Answer on Question# Programming, C#

Answer on Question# Programming, C# Answer on Question#38723 - Programming, C# 1. The development team of SoftSols Inc. has revamped the software according to the requirements of FlyHigh Airlines and is in the process of testing the software.

More information

C# winforms gridview

C# winforms gridview C# winforms gridview using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;

More information

Integration and Extension Product Version: 8.0 Quick Start Guide

Integration and Extension Product Version: 8.0 Quick Start Guide Adroit SmartUI Scripting Reference Integration and Extension Product Version: 8.0 Quick Start Guide 1. Table of contents 1. Table of contents... 1 2. Overview... 1 3. Purpose of this guide... 1 4. The

More information

C16 Visual Basic Net Programming

C16 Visual Basic Net Programming C16 Visual Basic Net Programming Student ID Student Name Date - Module Tutor - 1 P a g e Report Contents Introduction... 2 Software Development Process... 3 Self Reflection... 6 References... 6 Appendices...

More information

IRESS Depth - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IRESS Depth information

IRESS Depth - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IRESS Depth information IRESS Depth - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IRESS Depth information The purpose of this walkthrough is to build the following Windows Forms Application that will

More information

IOS Plus Trade - Web Services Version 4 Walkthrough

IOS Plus Trade - Web Services Version 4 Walkthrough IOS Plus Trade - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IOS Plus Trade information The purpose of this walkthrough is to build the following Windows Forms Application that

More information

A-1 LISTING PROGRAM. 1. Module1

A-1 LISTING PROGRAM. 1. Module1 A-1 LISTING PROGRAM 1. Module1 Imports System.Data.Odbc Imports System.Data Imports System.Data.SqlClient Imports MySql.Data.MySqlClient Module Module1 Public userid As String Public level As String Public

More information

Eyes of the Dragon - XNA Part 37 Map Editor Revisited

Eyes of the Dragon - XNA Part 37 Map Editor Revisited Eyes of the Dragon - XNA Part 37 Map Editor Revisited I'm writing these tutorials for the XNA 4.0 framework. Even though Microsoft has ended support for XNA it still runs on all supported operating systems

More information

How to work with data sources and datasets

How to work with data sources and datasets Chapter 14 How to work with data sources and datasets Objectives Applied Use a data source to get the data that an application requires. Use a DataGridView control to present the data that s retrieved

More information

IN COLLABORATION WITH IVTB. Diploma in Information Technology. Examinations for / Semester 2

IN COLLABORATION WITH IVTB. Diploma in Information Technology. Examinations for / Semester 2 IN COLLABORATION WITH IVTB Diploma in Information Technology DIP/03/Full Time Examinations for 2004 2005 / Semester 2 MODULE: VISUAL PROGRAMMING MODULE CODE: BISE070 Duration: 2 Hours + 10 Minutes (Reading

More information

UNIT-3. Prepared by R.VINODINI 1

UNIT-3. Prepared by R.VINODINI 1 Prepared by R.VINODINI 1 Prepared by R.VINODINI 2 Prepared by R.VINODINI 3 Prepared by R.VINODINI 4 Prepared by R.VINODINI 5 o o o o Prepared by R.VINODINI 6 Prepared by R.VINODINI 7 Prepared by R.VINODINI

More information

Hands-On Lab. Lab: Client Object Model. Lab version: Last updated: 2/23/2011

Hands-On Lab. Lab: Client Object Model. Lab version: Last updated: 2/23/2011 Hands-On Lab Lab: Client Object Model Lab version: 1.0.0 Last updated: 2/23/2011 CONTENTS OVERVIEW... 3 EXERCISE 1: RETRIEVING LISTS... 4 EXERCISE 2: PRINTING A LIST... 8 EXERCISE 3: USING ADO.NET DATA

More information

Copy Datatable Schema To Another Datatable Vb.net

Copy Datatable Schema To Another Datatable Vb.net Copy Datatable Schema To Another Datatable Vb.net NET Framework 4.6 and 4.5 The schema of the cloned DataTable is built from the columns of the first enumerated DataRow object in the source table The RowState

More information

This PDF was generated in real-time using DynamicPDF; Generator for.net.

This PDF was generated in real-time using DynamicPDF; Generator for.net. TableReport.aspx 1 1 Imports System 2 Imports System.Data 3 Imports System.Data.SqlClient 4 5 Imports cete.dynamicpdf 6

More information

private void closetoolstripmenuitem_click(object sender, EventArgs e) { this.close(); }

private void closetoolstripmenuitem_click(object sender, EventArgs e) { this.close(); } MEMBER PAYMENTS FORM public partial class MemberPaymentsForm : Form public MemberPaymentsForm() private void MemberPaymentsForm_Load(object sender, EventArgs e) // TODO: This line of code loads data into

More information

Selenium Open Source Test Automation Framework Keyword Naming Conventions for Developers (Web)

Selenium Open Source Test Automation Framework Keyword Naming Conventions for Developers (Web) Version 1.1 13 Aug 2013 D I S C L A I M E R Verbatim copying and distribution of this entire article are permitted worldwide, without royalty, in any medium, provided this notice is preserved. Table of

More information

Generics in VB.net. Generic Class: The following example shows a skeleton definition of a generic class.

Generics in VB.net. Generic Class: The following example shows a skeleton definition of a generic class. 1 Generics in VB.net A generic type is a single programming element that adapts to perform the same functionality for a variety of data types. When you define a generic class or procedure, you do not have

More information

Function: function procedures and sub procedures share the same characteristics, with

Function: function procedures and sub procedures share the same characteristics, with Function: function procedures and sub procedures share the same characteristics, with one important difference- function procedures return a value (e.g., give a value back) to the caller, whereas sub procedures

More information

Step 1: Start a GUI Project. Start->New Project->Visual C# ->Windows Forms Application. Name: Wack-A-Gopher. Step 2: Add Content

Step 1: Start a GUI Project. Start->New Project->Visual C# ->Windows Forms Application. Name: Wack-A-Gopher. Step 2: Add Content Step 1: Start a GUI Project Start->New Project->Visual C# ->Windows Forms Application Name: Wack-A-Gopher Step 2: Add Content Download the Content folder (content.zip) from Canvas and unzip in a location

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

Fast Food Store Group Boxes and Other User Controls

Fast Food Store Group Boxes and Other User Controls VISUAL BASIC Fast Food Store Group Boxes and Other User Controls Copyright 2014 Dan McElroy Sample Program Execution The customer receipt is updated each time another selection is made and the Enter button

More information

C4.3, 4 Lab: Conditionals - Select Statement and Additional Input Controls Solutions

C4.3, 4 Lab: Conditionals - Select Statement and Additional Input Controls Solutions C4.3, 4 Lab: Conditionals - Select Statement and Additional Input Controls Solutions Between the comments included with the code and the code itself, you shouldn t have any problems understanding what

More information

Else. End If End Sub End Class. PDF created with pdffactory trial version

Else. End If End Sub End Class. PDF created with pdffactory trial version Dim a, b, r, m As Single Randomize() a = Fix(Rnd() * 13) b = Fix(Rnd() * 13) Label1.Text = a Label3.Text = b TextBox1.Clear() TextBox1.Focus() Private Sub Button2_Click(ByVal sender As System.Object, ByVal

More information

Introduction. What is Recursive Data? Reporting on Hierarchical Recursive data using MS Reporting Services Asif Sayed

Introduction. What is Recursive Data? Reporting on Hierarchical Recursive data using MS Reporting Services Asif Sayed Introduction I will start with a question here. How many of you had chance to interact with Employee table from sample database Northwind? There you go I can imagine countless hands in air, and why not

More information

MenuStrip Control. The MenuStrip control represents the container for the menu structure.

MenuStrip Control. The MenuStrip control represents the container for the menu structure. MenuStrip Control The MenuStrip control represents the container for the menu structure. The MenuStrip control works as the top-level container for the menu structure. The ToolStripMenuItem class and the

More information

DO NOT COPY AMIT PHOTOSTUDIO

DO NOT COPY AMIT PHOTOSTUDIO AMIT PHOTOSTUDIO These codes are provided ONLY for reference / Help developers. And also SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUERMENT FOR THE AWARD OF BACHELOR OF COMPUTER APPLICATION (BCA) All rights

More information

ISM 3253 Exam I Spring 2009

ISM 3253 Exam I Spring 2009 ISM 3253 Exam I Spring 2009 Directions: You have exactly 75 minutes to complete this test. Time available is part of the exam conditions and all work must cease when "Stop work" is announced. Failing to

More information

Selenium Open Source Test Automation Framework Keyword Naming Conventions for Developers (Web)

Selenium Open Source Test Automation Framework Keyword Naming Conventions for Developers (Web) Version 1.2 March 2014 D I S C L A I M E R Verbatim copying and distribution of this entire article are permitted worldwi de, without royalty, in any medium, provided this notice is preserved. Table of

More information

ComponentOne. Document Library for UWP

ComponentOne. Document Library for UWP ComponentOne Document Library for UWP GrapeCity US GrapeCity 201 South Highland Avenue, Suite 301 Pittsburgh, PA 15206 Tel: 1.800.858.2739 412.681.4343 Fax: 412.681.4384 Website: https://www.grapecity.com/en/

More information

Handle Web Application Errors

Handle Web Application Errors Handle Web Application Errors Lesson Overview In this lesson, you will learn about: Hypertext Transfer Protocol (HTTP) error trapping Common HTTP errors HTTP Error Trapping Error handling in Web applications

More information

PREPARATION. Install MyGeneration and add the doodads project to your solution

PREPARATION. Install MyGeneration and add the doodads project to your solution PREPARATION Database Design Tips (MS SQL Server) 1. For each table, use a single identity column as the primary key. 2. For each table, add a column named "RowVersion" with a datatype of timestamp. (doodads

More information

Mainly three tables namely Teacher, Student and Class for small database of a school. are used. The snapshots of all three tables are shown below.

Mainly three tables namely Teacher, Student and Class for small database of a school. are used. The snapshots of all three tables are shown below. APPENDIX 1 TABLE DETAILS Mainly three tables namely Teacher, Student and Class for small database of a school are used. The snapshots of all three tables are shown below. Details of Class table are shown

More information

Employee Attendance System module using ASP.NET (C#)

Employee Attendance System module using ASP.NET (C#) Employee Attendance System module using ASP.NET (C#) Home.aspx DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

More information

My first game. 'function which adds objects with bug tag to bugarray array. Saturday, November 23, :06 AM

My first game. 'function which adds objects with bug tag to bugarray array. Saturday, November 23, :06 AM My first game Saturday, November 23, 2013 5:06 AM Public Class Form1 Dim moveright As Boolean = False Dim moveup As Boolean = False Dim moveleft As Boolean = False Dim movedown As Boolean = False Dim score

More information

PASSTCERT QUESTION & ANSWER

PASSTCERT QUESTION & ANSWER PASSTCERT QUESTION & ANSWER Higher Quality Better Service! Weofferfreeupdateserviceforoneyear HTTP://WWW.PASSTCERT.COM Exam : 070-540VB Title : TS: MS.NET Frmewk 3.5, Workflow Foundation App Dev Version

More information

5 When a program calls a function, in which type of data structure is memory allocated for the variables in that function?

5 When a program calls a function, in which type of data structure is memory allocated for the variables in that function? 1 The finally block of an exception handler is: -executed when an exception is thrown -always executed when the code leaves any part of the Try statement -always executed -always executed when the code

More information

Visual Basic/C# Programming (330)

Visual Basic/C# Programming (330) Page 1 of 12 Visual Basic/C# Programming (330) REGIONAL 2017 Production Portion: Program 1: Calendar Analysis (400 points) TOTAL POINTS (400 points) Judge/Graders: Please double check and verify all scores

More information

Delegates (Visual Basic)

Delegates (Visual Basic) Delegates (Visual Basic) https://msdn.microsoft.com/en-us/library/ms172879(d=printer).aspx 1 of 4 02.09.2016 18:00 Delegates (Visual Basic) Visual Studio 2015 Delegates are objects that refer to methods.

More information

3 Customer records. Chapter 3: Customer records 57

3 Customer records. Chapter 3: Customer records 57 Chapter 3: Customer records 57 3 Customer records In this program we will investigate how records in a database can be displayed on a web page, and how new records can be entered on a web page and uploaded

More information

DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6)

DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6) Technology & Information Management Instructor: Michael Kremer, Ph.D. Database Program: Microsoft Access Series DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6) AGENDA 3. Executing VBA

More information

PLATFORM TECHNOLOGY UNIT-4

PLATFORM TECHNOLOGY UNIT-4 VB.NET: Handling Exceptions Delegates and Events - Accessing Data ADO.NET Object Model-.NET Data Providers Direct Access to Data Accessing Data with Datasets. ADO.NET Object Model ADO.NET object model

More information

Chapter 3. Windows Database Applications The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

Chapter 3. Windows Database Applications The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Chapter 3 Windows Database Applications McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Objectives - 1 Retrieve and display data from a SQL Server database on Windows forms Use the

More information

A201 Object Oriented Programming with Visual Basic.Net

A201 Object Oriented Programming with Visual Basic.Net A201 Object Oriented Programming with Visual Basic.Net By: Dr. Hossein Computer Science and Informatics IU South Bend 1 What do we need to learn in order to write computer programs? Fundamental programming

More information

Lecture 10: Database. Lisa (Ling) Liu

Lecture 10: Database. Lisa (Ling) Liu Chair of Software Engineering C# Programming in Depth Prof. Dr. Bertrand Meyer March 2007 May 2007 Lecture 10: Database Lisa (Ling) Liu Database and Data Representation Database Management System (DBMS):

More information

3. Can every Do-Loop loop be written as a For-Next loop? Why or why not? 4. Name two types of files that can be opened and used in a VB program.

3. Can every Do-Loop loop be written as a For-Next loop? Why or why not? 4. Name two types of files that can be opened and used in a VB program. CE 311 K Fall 005 Second Exam - Examples Answers at the bottom. 1. What are two categories of flow control structures?. Name three logical operators in Visual Basic (VB). 3. Can every Do-Loop loop be written

More information

TABLE OF CONTENTS. Data binding Datagrid 10 ComboBox 10 DropdownList 10

TABLE OF CONTENTS. Data binding Datagrid 10 ComboBox 10 DropdownList 10 TABLE OF CONTENTS Preparation Database Design Tips 2 Installation and Setup 2 CRUD procedures 3 doodads for tables 3 doodads for views 3 Concrete classes 3 ConnectionString 4 Enhancing concrete classes

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

LISTING PROGRAM. PrivateSub KeluarToolStripMenuItem_Click(sender AsObject, e AsEventArgs) Handles KeluarToolStripMenuItem.Click Close() EndSub

LISTING PROGRAM. PrivateSub KeluarToolStripMenuItem_Click(sender AsObject, e AsEventArgs) Handles KeluarToolStripMenuItem.Click Close() EndSub LISTING PROGRAM 1.Tampilan awal PublicClassmm PrivateSub InputDataGuruToolStripMenuItem_Click(sender AsObject, e AsEventArgs) Handles InputDataGuruToolStripMenuItem.Click guru.show() Me.Hide() EndSub PrivateSub

More information

ComponentOne. MultiSelect for WinForms

ComponentOne. MultiSelect for WinForms ComponentOne MultiSelect for WinForms GrapeCity US GrapeCity 201 South Highland Avenue, Suite 301 Pittsburgh, PA 15206 Tel: 1.800.858.2739 412.681.4343 Fax: 412.681.4384 Website: https://www.grapecity.com/en/

More information

Implementing a SOAP Client in VB using Visual Studio 2008

Implementing a SOAP Client in VB using Visual Studio 2008 Implementing a SOAP Client in VB using Visual Studio 2008 Create a new project In Visual studio 2008, select File New. In the new projects dialog navigate to VB, then under windows select Empty Project

More information

Accessing Databases 7/6/2017 EC512 1

Accessing Databases 7/6/2017 EC512 1 Accessing Databases 7/6/2017 EC512 1 Types Available Visual Studio 2017 does not ship with SQL Server Express. You can download and install the latest version. You can also use an Access database by installing

More information

Long Distance Call. Long Distance Call 9/28/2015

Long Distance Call. Long Distance Call 9/28/2015 VISUAL BASIC PROGRAMMING PROJECT Long Distance Call Long Distance Call DESCRIPTION: Write a program that computes the cost of a long-distance call. The cost of the call is determined according to the following

More information

Yes, this is still a listbox!

Yes, this is still a listbox! Yes, this is still a listbox! Step 1: create a new project I use the beta 2 of Visual Studio 2008 ( codename Orcas ) and Expression Blend 2.0 September preview for this tutorial. You can download the beta2

More information

I101/B100 Problem Solving with Computers

I101/B100 Problem Solving with Computers I101/B100 Problem Solving with Computers By: Dr. Hossein Computer Science and Informatics IU South Bend 1 What do we need to learn in order to write computer programs? Fundamental programming constructs:

More information

The original of this document was developed by the Microsoft special interest group. We made some addons.

The original of this document was developed by the Microsoft special interest group. We made some addons. Naming Conventions for.net / C# Projects Martin Zahn, Akadia AG, 20.03.2003 The original of this document was developed by the Microsoft special interest group. We made some addons. This document explains

More information

ITcertKing. The latest IT certification exam materials. IT Certification Guaranteed, The Easy Way!

ITcertKing.   The latest IT certification exam materials. IT Certification Guaranteed, The Easy Way! ITcertKing The latest IT certification exam materials http://www.itcertking.com IT Certification Guaranteed, The Easy Way! Exam : 70-561-VB Title : TS: MS.NET Framework 3.5, ADO.NET Application Development

More information

CSC Java Programming, Fall Java Data Types and Control Constructs

CSC Java Programming, Fall Java Data Types and Control Constructs CSC 243 - Java Programming, Fall 2016 Java Data Types and Control Constructs Java Types In general, a type is collection of possible values Main categories of Java types: Primitive/built-in Object/Reference

More information

"!#... )*! "!# )+, -./ 01 $

!#... )*! !# )+, -./ 01 $ Email engauday@hotmail.com! "!#... $ %&'... )*! "!# )+, -./ 01 $ ) 1+ 2#3./ 01 %.. 7# 89 ; )! 5/< 3! = ;, >! 5 6/.?

More information

Download the files from you will use these files to finish the following exercises.

Download the files from  you will use these files to finish the following exercises. Exercise 6 Download the files from http://www.peter-lo.com/teaching/x4-xt-cdp-0071-a/source6.zip, you will use these files to finish the following exercises. 1. This exercise will guide you how to create

More information

Chapter 8 Advanced GUI Features

Chapter 8 Advanced GUI Features 159 Chapter 8 Advanced GUI Features There are many other features we can easily add to a Windows C# application. We must be able to have menus and dialogs along with many other controls. One workhorse

More information

MapMatrix NetGIS Application Objects Users Guide. Version 2.3

MapMatrix NetGIS Application Objects Users Guide. Version 2.3 MapMatrix NetGIS Application Objects Users Guide Version 2.3 CONTENTS 1 Overview of MapMatrix NetGIS... 3 1.1 MapMatrix NetGIS Features... 3 1.2 Operating System Requirements... 3 1.3 The MapMatrix Architecture...

More information

Crystal Reports. Overview. Contents. Using Crystal Reports Print Engine calls (API) in Microsoft Visual Basic

Crystal Reports. Overview. Contents. Using Crystal Reports Print Engine calls (API) in Microsoft Visual Basic Using Crystal Reports Print Engine calls (API) in Microsoft Visual Basic Overview Contents This document describes how to preview a report using Microsoft (MS) Visual Basic, by making direct API calls

More information

Serial-out Color Sensor. Overview. Features

Serial-out Color Sensor. Overview. Features Visit us @ www.thearyatechnologies.com Email: aryaprotech@gmail.com / info@thearyatechnologies.com Contact us@ 0253-2512131 Serial-out Color Sensor Overview Color sensor identifies primary colors (Red,

More information

Using KE IMu's.Net API

Using KE IMu's.Net API IMu Documentation Using KE IMu's.Net API Document Version 2 EMu Version 4.0 IMu Version 1.0.03 www.kesoftware.com 2011 KE Software. All rights reserved. Contents SECTION 1 Introduction 1 Documenting data

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

Workflow V2.8.1 Administrator and User Guide February 2015

Workflow V2.8.1 Administrator and User Guide February 2015 Workflow V2.8.1 Administrator and User Guide February 2015 www.ecmtoolbox.com 1 Table of Contents Contents Introduction...3 Server System Requirements...4 Client System Requirements...4 USER GUIDE SECTION...5

More information

TuneTown Lab Instructions

TuneTown Lab Instructions TuneTown Lab Instructions Purpose: Practice creating a modal dialog. Incidentally, learn to use a list view control. Credit: This program was designed by Jeff Prosise and published in MSDN Magazine. However,

More information

'... '... '... Developer: William H. White (consultant) '... With: TEKsystems Inc. '... For: AIG. Financial Information Systems

'... '... '... Developer: William H. White (consultant) '... With: TEKsystems Inc.   '... For: AIG. Financial Information Systems ThisWorkbook - 1 Developer: William H. White (consultant) With: TEKsystems Inc. www.teksystems.com For: AIG Financial Information Systems 1 NY Plaza, 15th floor Current contact: william.white@aig.com (212)

More information

Liam Chowdhury Event Driven Programming st STUDENT NUMBER: st YEAR:2013/14 GROUP:

Liam Chowdhury Event Driven Programming st STUDENT NUMBER: st YEAR:2013/14 GROUP: STUDENT NAME: Liam Chowdhury PROGRAMME: BSc Software Engineering STUDENT NUMBER: st20043420 YEAR:2013/14 GROUP: Module Number: BCO4014 Term: 2 Module Title: Event Driven Programming Tutor Responsible For

More information

EXAMGOOD QUESTION & ANSWER. Accurate study guides High passing rate! Exam Good provides update free of charge in one year!

EXAMGOOD QUESTION & ANSWER. Accurate study guides High passing rate! Exam Good provides update free of charge in one year! EXAMGOOD QUESTION & ANSWER Exam Good provides update free of charge in one year! Accurate study guides High passing rate! http://www.examgood.com Exam : 70-547(VB) Title : PRO:Design and Develop Web-Basd

More information

Design and Development of Coal Mining Equipment Inspection Instrument Application System

Design and Development of Coal Mining Equipment Inspection Instrument Application System Sensors & Transducers 2014 by IFSA Publishing, S. L. http://www.sensorsportal.com Design and Development of Coal Mining Equipment Inspection Instrument Application System Chenguang Zhao, Boqiang Shi, *

More information

Tutorial 5 Database. Adam Sek Keb Wira 12 A123 6 Amanah Tmn Mahkota

Tutorial 5 Database. Adam Sek Keb Wira 12 A123 6 Amanah Tmn Mahkota Task 1 Creating a database using Access 2010: Tutorial 5 Database 1. Using Microsoft Access create a database for; a. Name b. School c. Age d. Birth Cert No e. Year f. Address g. Date of birth 2. Type

More information

Create your own Meme Maker in C#

Create your own Meme Maker in C# Create your own Meme Maker in C# This tutorial will show how to create a meme maker in visual studio 2010 using C#. Now we are using Visual Studio 2010 version you can use any and still get the same result.

More information

EL-USB-RT API Guide V1.0

EL-USB-RT API Guide V1.0 EL-USB-RT API Guide V1.0 Contents 1 Introduction 2 C++ Sample Dialog Application 3 C++ Sample Observer Pattern Application 4 C# Sample Application 4.1 Capturing USB Device Connect \ Disconnect Events 5

More information

Public Class ClassName (naming: CPoint)

Public Class ClassName (naming: CPoint) Lecture 6 Object Orientation Class Implementation Concepts: Encapsulation Inheritance Polymorphism Template/Syntax: Public Class ClassName (naming: CPoint) End Class Elements of the class: Data 1. Internal

More information

MT264 Course Revision

MT264 Course Revision MT264 Course Revision Written by : Rifat Hamoudi (staff number : 00567451) GUI Forms A graphical user interface or GUI is a means of interacting with a device by using graphical images. For example, mobile

More information

Exam sell. Higher Quality Better Service! Certified IT practice exam authority.

Exam sell. Higher Quality Better Service! Certified IT practice exam authority. Higher Quality Better Service! Exam sell Certified IT practice exam authority Accurate study guides, High passing rate! Exam Sell provides update free of charge in one year! http://www.examsell.com Exam

More information

Insert Data into Table using C# Code

Insert Data into Table using C# Code Insert Data into Table using C# Code CREATE TABLE [registration]( [roll_no] [int] NULL, [name] [varchar](50), [class] [varchar](50), [sex] [varchar](50), [email] [varchar](50))

More information

STEP 1: CREATING THE DATABASE

STEP 1: CREATING THE DATABASE Date: 18/02/2013 Procedure: Creating a simple registration form in ASP.NET (Programming) Source: LINK Permalink: LINK Created by: HeelpBook Staff Document Version: 1.0 CREATING A SIMPLE REGISTRATION FORM

More information

...015\Projects\Two_Channel_V1.0\Two_Channel_V1.0\Form1.vb 1

...015\Projects\Two_Channel_V1.0\Two_Channel_V1.0\Form1.vb 1 ...015\Projects\Two_Channel_V1.0\Two_Channel_V1.0\Form1.vb 1 Imports System.IO.Ports Public Class Form1 Dim comport As String Dim receiveddata As String = "" Dim command_app_1 As String = "T,1,500,500>"

More information

Introduction to Programming in C Department of Computer Science and Engineering. Lecture No. #16 Loops: Matrix Using Nested for Loop

Introduction to Programming in C Department of Computer Science and Engineering. Lecture No. #16 Loops: Matrix Using Nested for Loop Introduction to Programming in C Department of Computer Science and Engineering Lecture No. #16 Loops: Matrix Using Nested for Loop In this section, we will use the, for loop to code of the matrix problem.

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

Oracle Rdb Developer Tools for Visual Studio Developer s Guide, Release Copyright 2011 Oracle Corporation Corporation. All rights reserved.

Oracle Rdb Developer Tools for Visual Studio Developer s Guide, Release Copyright 2011 Oracle Corporation Corporation. All rights reserved. Oracle Rdb Developer Tools for Visual Studio Developer's Guide V7.3.2.1 May 2011 Oracle Rdb Developer Tools for Visual Studio Developer s Guide, Release 7.3-21 Copyright 2011 Oracle Corporation Corporation.

More information

ClientAce PTC Inc. All Rights Reserved.

ClientAce PTC Inc. All Rights Reserved. 2016 PTC Inc. All Rights Reserved. 2 Table of Contents ClientAce 1 Table of Contents 2 Client Ace Contents 5 Overview 5 System and Application Requirements 6 Runtime Requirements 7 ClientAce.NET API Assembly

More information

Lab 6B Coin Collection

Lab 6B Coin Collection HNHS Computer Programming I / IPFW CS 11400 Bower - Page 1 Lab 6B Coin Collection You will create a program that allows users to enter the quantities of an assortment of coins (quarters, dimes, nickels,

More information

ClientAce Help Kepware Technologies

ClientAce Help Kepware Technologies ClientAce Help 2014 Kepware Technologies 2 ClientAce Help Table of Contents Table of Contents 2 Contents 5 Overview 5 System and Application Requirements 6 Runtime Requirements 7 ClientAce.NET API Assembly

More information

ClientAce User Manual PTC Inc. All Rights Reserved.

ClientAce User Manual PTC Inc. All Rights Reserved. ClientAce User Manual 2017 PTC Inc. All Rights Reserved. ClientAce 2 Table of Contents ClientAce User Manual 1 Table of Contents 2 Contents 5 Overview 5 System and Application Requirements 6 Runtime Requirements

More information

User Guide for IntegralUI ListBox v3.0

User Guide for IntegralUI ListBox v3.0 User Guide for IntegralUI ListBox v3.0 2013 Lidor Systems. All rights reserved 1 Table of contents Introduction 4 Architecture 5 Object Model 5 Event Model 6 Editor 7 Appearance 8 Working with styles 8

More information

Should read: Model First Reads: AutoIncementStep and AutoIncrementSeed

Should read: Model First Reads: AutoIncementStep and AutoIncrementSeed MCTS Self-Paced Training Kit (Exam 70-516): Accessing Data with Microsoft.NET Framework 4 ISBN: 978-0-7356-2739-0 First printing: June, 2011 To ensure the ongoing accuracy of this book and its companion

More information

VB. Microsoft. MS.NET Framework 3.5 ADO.NET Application Development

VB. Microsoft. MS.NET Framework 3.5 ADO.NET Application Development Microsoft 70-561-VB MS.NET Framework 3.5 ADO.NET Application Development Download Full Version : http://killexams.com/pass4sure/exam-detail/70-561-vb B. Catch ex As System.Data.SqlClient.SqlException For

More information

Disconnected Data Access

Disconnected Data Access Disconnected Data Access string strconnection = ConfigurationManager.ConnectionStrings["MyConn"].ToString(); // Khai báo không tham số SqlConnection objconnection = new SqlConnection(); objconnection.connectionstring

More information

Advanced Computer Programming

Advanced Computer Programming Hazırlayan Yard. Doç. Dr. Mehmet Fidan Functions are integrities of variables and expressions that are used to fulfill a job. They take definite parameter types and have definite return types. They can

More information