Form Tasarımı - 5. Veri Tabanı Veri tabanı ismi; m Tablo ismi; mt



Similar documents
C# Datenbank-Programmierung

VB.NET - DATABASE ACCESS

Hi, processing. Code of the vb.net version. Imports System.Data Imports System.Data.SqlClient

{ oledbdataadapter1.updatecommand.commandtext = "update personel set ad='" + textbox2.text + "' where id=" + textbox1.text; oledbconnection1.

CRYSTAL REPORTS IN VISUAL STUDIO.NET 2003

STUDENTS ATTENDANCE MANAGEMENT SYSTEM MINI PROJECT REPORT. Submitted by. KALAISANKARAN B Roll No: 11MCA020

Faculté d Ingénieurs en Informatique, Multimédia, Systèmes, Télécommunication et Réseaux. Master en Génie Logiciel. VB.NET et ASP.

TITLE PAGE WEB BASED APPLICATION FOR INSURANCE SERVICES CASE STUDY OF THE INSURANCE COMPANY ESEDEBE FIDELIA OGECHUKWU (CST/2009/333)

1. Create SQL Database in Visual Studio

How To: Create a Crystal Report from ADO.NET Dataset using Visual Basic.NET

Xml Inst2 Page - Complete Education

Deleting A Record Updating the Database Binding Data Tables to Controls Binding the Data Table to the Data Grid View...

ClientAce WPF Project Example

'========================================================================== ==== Scans a range of A/D Input Channels

EViews Database Extension Interface

INGESTING NWIS DATA USING VB.NET AND VISUAL STUDIO 2008

CRM Setup Factory Installer V 3.0 Developers Guide

Design of Conveyor Monitoring Controller with Wireless System

Access Data Object (cont.)

Visual Web Development

Introduction to Computer and Information Science CIS 110, Fall 2015

1. La classe Connexion class Connexion {

Bronson Door Company Web Site

The VB development environment

a) What is the major difference between a program that runs under a virtual machine vs. one that does not?

Real-World ASP.NET: Building a Content Management System

ResPage.aspx. Imports System.IO Imports System.Xml Imports System.Xml.XPath Imports System.Xml.Xsl Imports PDFDocScout

bbc Developing Applications Using Interapplication Communication Adobe Acrobat SDK November 2006 Version 8.0

ASP and ADO (assumes knowledge of ADO)

The Need for a New Data Processing Interface for Digital Forensic Examination

Many applications consist of one or more classes, each containing one or more methods. If you become part of a development team in industry, you may

Ambientes de Desenvolvimento Avançados

ResellerPlus - Bulk Http API Specification. (This Document gives details on how to send messages via the Bulk HTTP API for the RouteSms SMPP System)

Crystal Reports for Visual Studio.NET

Códigos fuentes aplicativo Agenda con VB.NET

Introduction to Visual Basic and Visual C++ Database Foundation. Types of Databases. Data Access Application Models. Introduction to Database System

To be able to use web parts to create a portal-style web application

AD A O.N. ET E Access Data Object

Credit Card Transactions

Conexión SQL Server C#

I A Form és a párbeszédablakok I.1. MessageBox osztály MessageBox.Show(szöveg[,cím[,gombok[,ikon[,defaultbutton]]]]);

Service-Oriented Architecture, Web Services, XML and Higher Education

(Document Version 1.4) (This Document gives details on how to send messages via the Bulk HTTP API for the RouteSms SMPP System)

JOURNAL OF OBJECT TECHNOLOGY

Updated SQL Injection

Relationships in WPF Applications

Kepware Technologies ClientAce: Creating a Simple Windows Form Application

How-To Guide. SigCard1 (With Microsoft Access) Demo. Copyright Topaz Systems Inc. All rights reserved.

Changing the Display Frequency During Scanning Within an ImageControls 3 Application

Serial Port Using Visual Basic.NET and Windows

Module 6: Validating User Input

Appendix IX. Codes written for developing the revised search tool in HTML

TRANSITION FROM TEACHING VB6 TO VB.NET

Creating and Consuming XML Web Services

Converting Relational Database Into Xml Document

webcrm API Getting Started

Visual Basic 2010 Essentials

ComponentOne. Windows for WPF

Passare a Sql Server Compact : come leggere dati da Mdb, Xls, Xml, Dbf, Csv, senza utilizzare Microsoft Jet Database Engine 4.0

Tracing and Debugging in ASP.NET

How To Create A Database In Araba

Using IRDB in a Dot Net Project

Creating Reports Using Crystal Reports

2nd GENERATION CAR SECURITY SYSTEM

One method for batch DHI data import into SQL-Server. A batch data import technique for DateSet based on.net Liang Shi and Wenxing Bao

Crystal Reports. For Visual Studio.NET. Reporting Off ADO.NET Datasets

Hands-On Lab. Building a Data-Driven Master/Detail Business Form using Visual Studio Lab version: Last updated: 12/10/2010.

Crystal Reports.NET Programming

RSS Feed from an Access Database

Mastering Visual Basic.NET Database Programming Evangelos Petroutsos; Asli Bilgin

Lab 8: ASP.NET 2.0 Configuration API and Health Monitoring

ACE 2011 International. Role Based Clients. aras.com

Abstract. Introduction. System Requirement. GUI Design. Paper AD

Secure Routing and Identifying Hacking In P2p System


NiceLabel WebSDK Programming Guide

Be06. Public Shared v_win_rf As String = "38.6." Public Shared improvement As String = ".01"

A CAD (Classroom Assessment Design) of a Computer Programming Course

Building Websites with VB.NET and DotNetNuke 4

Beginning MYSQL 5.0. With. Visual Studio.NET 2005

und ch/

Visual Basic Database Connectivity

Application of Data-mining Technique and Intelligent System on Demography Analysis in Nigeria

ASP.NET and Web Forms

Security Awareness For Website Administrators. State of Illinois Central Management Services Security and Compliance Solutions

Introduction to Custom GIS Application Development for Windows. By: Brian Marchionni

SRFax Fax API Web Services Documentation

VBA Microsoft Access 2007 Macros to Import Formats and Labels to SAS

Appendix B - VoIP SARRA Source Codes and Cisco XML Objects

Integrating SAS and Microsoft.NET for Data Analysis

Retrieving Data from Oracle Using ODP.NET

SAP User and Access Management with Microsoft Identity Integration Server

Visual Basic Cheat Sheet

USER GUIDE Appointment Manager

Although most agree that it got off to a slower-than-anticipated start, Microsoft s

(Ch: 1) Building ASP.NET Pages. A. ASP.NET and the.net Framework B. Introducing ASP.NET Controls C. Adding Application logic to an ASP.

ASP.NET Dynamic Data

TECHNICAL PROPOSAL ITS SOFTWARE INTEGRATION & MAINTENANCE RFP-DOT SOF

X. Apéndice C. Listado de Códigos.

.NET Development for the web Using Microsoft Office SharePoint Server 2007 and ASP.NET

Transcription:

Form Tasarımı - 5 Veri Tabanı Veri tabanı ismi; m Tablo ismi; mt Kodlar Imports System.Data Imports System.Data.OleDb Imports System.Xml Imports System.IO Public Class Form5 Dim yeni As OleDbConnection Dim uygula As OleDbCommand Dim bağlantı, sorgu, yol As String Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click () sorgu = "UpDate mt set musterıadı='" + TextBox2.Text + "',adresı='" + TextBox4.Text + "'Where musterıadı='" + TextBox1.Text + "' And adresı='" + TextBox3.Text + "'" yeni = New OleDbConnection(bağlantı) uygula = New OleDbCommand(sorgu, yeni) uygula.connection.open() Dim adet As Integer adet = uygula.executenonquery() If (adet = 0) Then 1

MsgBox("deyişecek kayıt yok") ElseIf adet = 1 Then MsgBox("deyişti") Else MsgBox("koşula uygun " & adet.tostring & " kayıt deyişti") yeni.close() End Class Form Tasarımı - 4 Kodlar Imports System.Data Imports System.Data.OleDb Imports System.Xml Imports System.IO Public Class Form4 Dim toblo As DataTable Dim kayıt As DataRow Dim nu As Integer Dim numara As CurrencyManager Dim bağlantı, sorgu, yol As String Dim parametre As OleDbParameter Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim OleDbCommand1 As OleDbCommand Dim mes As DialogResult Try mes = MessageBox.Show("silinecek", "sil", MessageBoxButtons.YesNo) If (mes = DialogResult.Yes) Then () OleDbConnection1 = New OleDbConnection("Provider=Microsoft.jet.oledb.4.0;Data source= " + yol) OleDbDataAdapter1 = New OleDbDataAdapter("Select * From mt ", OleDbConnection1) 2

sorgu = "Delete From mt Where sırano=?" parametre = New OleDbParameter parametre.value = Convert.ToInt32(kayıt(0)) OleDbCommand1.Parameters.Add(parametre) OleDbCommand1.ExecuteNonQuery() MessageBox.Show("kayıt silindi") Catch ex As Exception MessageBox.Show(ex.Message) End Try Private Sub göster() sorgu = "SELECT * FROM mt" OleDbDataAdapter1 = New OleDbDataAdapter(sorgu, OleDbConnection1) DataSet1 = New DataSet OleDbDataAdapter1.Fill(DataSet1, "mt") DataGrid1.DataSource = DataSet1.Tables(0) Private Sub Form4_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load göster() Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click sorgu = "SELECT * FROM mt" nu = DataGrid1.CurrentCell.RowNumber kayıt = DataSet1.Tables("MT").Rows(nu) kayıt(1) = DataGrid1(nu, 1).ToString kayıt(2) = DataGrid1(nu, 2).ToString kayıt(3) = DataGrid1(nu, 3).ToString kayıt(4) = DataGrid1(nu, 4).ToString toblo = DataSet1.Tables("mt").GetChanges If Not (toblo Is Nothing) Then OleDbCommandBuilder1 = New OleDbCommandBuilder(OleDbDataAdapter1) OleDbDataAdapter1.Update(toblo) DataSet1.Tables("mt").AcceptChanges() End Class 3

Form Tasarımı 2 Kodlar Imports System.Data Imports System.Data.OleDb Imports System.Xml Imports System.IO Public Class Form2 Dim toblo As DataTable Dim kayıt As DataRow Dim nu As Integer Dim bağlantı, sorgu, yol As String Dim numara As CurrencyManager Dim para(5) As OleDbParameter Dim par As OleDbParameter Dim parametre As OleDbParameter Dim deg As Integer Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim OleDbCommand1 As OleDbCommand Dim mes As DialogResult Try mes = MessageBox.Show("silinecek", "sil", MessageBoxButtons.YesNo) If (mes = DialogResult.Yes) Then () OleDbConnection1 = New OleDbConnection("Provider=Microsoft.jet.oledb.4.0;Data source= " + yol) OleDbDataAdapter1 = New OleDbDataAdapter("Select * From mt ", OleDbConnection1) sorgu = "Delete From mt Where sırano=?" 4

parametre = New OleDbParameter parametre.value = Convert.ToInt32(kayıt(0)) OleDbCommand1.Parameters.Add(parametre) OleDbCommand1.ExecuteNonQuery() MessageBox.Show("kayıt silindi") Catch ex As Exception MessageBox.Show(ex.Message) End Try Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim a As Integer sorgu = "UpDate mt set musterıadı=?,adresı=?,madenıhal=?,urunadı=?,fıyat=? where sırano=?" a = DataGrid1.CurrentCell.RowNumber para(0) = New OleDbParameter para(1) = New OleDbParameter para(2) = New OleDbParameter para(3) = New OleDbParameter para(4) = New OleDbParameter para(5) = New OleDbParameter para(0).value = TextBox1.Text para(1).value = TextBox2.Text para(2).value = CheckBox1.Checked para(3).value = TextBox3.Text para(4).value = Convert.ToInt32(TextBox4.Text) para(5).value = Convert.ToInt32(kayıt(0)) OleDbCommand1.Parameters.Add(para(0)) OleDbCommand1.Parameters.Add(para(1)) OleDbCommand1.Parameters.Add(para(2)) OleDbCommand1.Parameters.Add(para(3)) OleDbCommand1.Parameters.Add(para(4)) OleDbCommand1.Parameters.Add(para(5)) OleDbCommand1.ExecuteNonQuery() Private Sub göster() sorgu = "SELECT * FROM mt" OleDbDataAdapter1 = New OleDbDataAdapter(sorgu, OleDbConnection1) DataSet1 = New DataSet OleDbDataAdapter1.Fill(DataSet1, "mt") DataGrid1.DataSource = DataSet1.Tables(0) TextBox1.Text = kayıt(1).tostring 5

TextBox2.Text = kayıt(2).tostring CheckBox1.Checked = Convert.ToBoolean(kayıt(3).ToString()) TextBox3.Text = kayıt(4).tostring TextBox4.Text = kayıt(5).tostring Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load göster() Private Sub DataGrid1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGrid1.Click deg = numara.position Me.Text = deg.tostring göster() numara.position = deg TextBox1.Text = kayıt(1).tostring TextBox2.Text = kayıt(2).tostring CheckBox1.Checked = Convert.ToBoolean(kayıt(3).ToString()) TextBox3.Text = kayıt(4).tostring TextBox4.Text = kayıt(5).tostring End Class 6