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



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

1.Tüm Kayıtları Getirme - Arama Yapma

1. La classe Connexion class Connexion {

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

Conexión SQL Server C#

ASP.NET(C#) ile Kayıt Listeleme, Silme ve Düzenleme İşlemi

How To Create A Database In Araba

Ing. Javier Calvo Moreno

ASP and ADO (assumes knowledge of ADO)

Systems Programming & Scripting

PROCEDURE INSERTION(NUM IN EMPLOYES.NUMEMP%TYPE, NOM VARCHAR2, PRENOM IN VARCHAR2, PPHOTO IN BLOB, SALAIRE IN NUMBER);

RSS Feed from an Access Database

Log/Process/Hashing. Details. Activities. Processes

Access Data Object (cont.)

A Step by Step Guide for Building an Ozeki VoIP SIP Softphone

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.

İNTERNET TABANLI PROGRAMLAMA- 13.ders GRIDVIEW, DETAILSVIEW, ACCESSDATASOURCE NESNELERİ İLE BİLGİ GÖRÜNTÜLEME

Sending Data from a computer to a microcontroller using a UART (Universal Asynchronous Receiver/Transmitter)

Aucune validation n a été faite sur l exemple.

VB.NET - DATABASE ACCESS

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

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

1. Create SQL Database in Visual Studio

Introduction to Visual Basic and Visual C++ Introduction to Control. TextBox Control. Control Properties. Lesson 5

ADOBE READER AND ACROBAT

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

CRM Setup Factory Installer V 3.0 Developers Guide

C# Datenbank-Programmierung

Bronson Door Company Web Site

5 Airport. Chapter 5: Airport 49. Right-click on Data Connections, then select Add Connection.

Using scanners with Axapta Document Management

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

How To Develop A Mobile Application On Sybase Unwired Platform

如 何 在 C#.2005 中 使 用 ICPDAS I/O Card 的 DLL 檔 案

WINDOWS FORMS DEVELOPMENT

Tutorial 1: M/M/n Service System Simulation Tutorial 2: M/M/n Simulation using Excel input file Tutorial 3: A Production/Inventory System Simulation

2. Modify default.aspx and about.aspx. Add some information about the web site.

BACKING UP A DATABASE

DataGridView in Windows Forms Tips, Tricks and Frequently Asked Questions(FAQ)

Integrating SAS and Microsoft.NET for Data Analysis

Tutorial: Windows Mobile Application Development. Sybase Unwired Platform 2.1 ESD #2

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

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

SQL Server Database Web Applications

Objectives. RadioButton. Drag radio buttons to form. Chapter 3 Controls for Windows Forms 2004 Art Gittleman

Working with Data in ASP.NET 2.0 :: Paging and Sorting Report Data Introduction. Step 1: Adding the Paging and Sorting Tutorial Web Pages

Introduction to ASP.NET Web Development Instructor: Frank Stepanski

NEWSTAR Sales. Web Lead Guide. April 2009 Constellation HomeBuilder Systems, Inc. All right reserved

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

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

Security API Cookbook

Login with other services to ASP.NET websites with TMS Cloud Pack for.net

Assignment 4 Component 6 Project Management System

GENERATING SQL SCRIPTS FOR STORED PROCEDURES, FUNCTIONS, VIEWS & TRIGGERS

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

Using SQL Server Management Studio

Matière : Application Web avec C#

EMC Documentum Application Connectors Software Development Kit

PUBLIC. How to Use in SAP Business One. Solutions from SAP. SAP Business One 2005 A SP01

MyChartWebPart.cs. // For SortList using System.Collections.Generic; using System.Collections; // For DataTable using System.Data;

ClientAce WPF Project Example

Skyline Interactive Tool Support

SQL Desktop Application For WebService in C# dr inż. Tomasz Tatoń

Windows Mobile Power Management

HACKING AUTHENTICATION CHECKS IN WEB APPLICATIONS ASHISH RAO & SIDDHARTH ANBALAHAN

Mobile Application Development Using.NET

Mapping Specification for DWG/DXF (MSD) C#.NET Code Samples

Introduction to Visual Studio and C#

Chapter 14 WCF Client WPF Implementation. Screen Layout

A PROJECT REPORT ON. SkyDrive. Submitted for the partial fulfillment of the requirement for the Award of the degree of MASTER OF COMPUTER APPLICATION

Licensed for viewing only. Printing is prohibited. For hard copies, please purchase from

Converting Relational Database Into Xml Document

How To Create A Data Gateway On A Microsoft Powerbook On A Pc Or Macode (For Microsoft) On A Macode 2.5 (For A Microode) On An Ipad Or Macroode ( For A Microos

DIPLOMA IN WEBDEVELOPMENT

Serious Threat. Targets for Attack. Characterization of Attack. SQL Injection 4/9/2010 COMP On August 17, 2009, the United States Justice

Using C# for Graphics and GUIs Handout #2

Capturx for SharePoint 2.0: Notification Workflows

Or working offline with the local server: Once you have the App Inventor running type into your browser

CHAPTER 10: WEB SERVICES

TS: Microsoft.NET Framework 3.5, ASP.NET Application Development

Web Development using PHP (WD_PHP) Duration 1.5 months

QUOTATION INFORMATION AUTOMATION SOLUTION

Save Actions User Guide

listboxgaatmee.dragdrop += new DragEventHandler(listBox_DragDrop); ListBox from = (ListBox)e.Data.GetData(typeof(ListBox));

Gantt Control Developer Reference

ASP.NET Dynamic Data

Implementing Specialized Data Capture Applications with InVision Development Tools (Part 2)

Xamarin.Forms. Hands On

API Endpoint Methods NAME DESCRIPTION GET /api/v4/analytics/dashboard/ POST /api/v4/analytics/dashboard/ GET /api/v4/analytics/dashboard/{id}/ PUT

Form Validation. Server-side Web Development and Programming. What to Validate. Error Prevention. Lecture 7: Input Validation and Error Handling

WINDOWS PRESENTATION FOUNDATION LEKTION 3

Transcription:

private void Form1_Load(object sender, EventArgs e) oledbdataadapter1.fill(dataset11); private void button1_click(object sender, EventArgs e) oledbdataadapter1.update(dataset11); private void Form1_Load(object sender, EventArgs e) oledbdataadapter1.fill(dataset11); private void button1_click(object sender, EventArgs e) oledbdataadapter1.update(dataset11); oledbdataadapter1.updatecommand.commandtext = "update personel set ad='" + textbox2.text + "' where id=" + textbox1.text; oledbconnection1.open();

oledbdataadapter1.updatecommand.executenonquery(); oledbconnection1.close(); oledbdataadapter1.fill(dataset11); private void button3_click(object sender, EventArgs e) oledbdataadapter1.deletecommand.commandtext = "delete from personel where id=" + textbox1.text; oledbconnection1.open(); oledbdataadapter1.deletecommand.executenonquery(); oledbconnection1.close(); dataset11.clear(); oledbdataadapter1.fill(dataset11); private void button4_click(object sender, EventArgs e) oledbdataadapter1.insertcommand.commandtext = "insert into personel (ad,soyad,maas) values('" + textbox2.text + "','" + textbox3.text + "'," + textbox4.text + ")"; oledbconnection1.open(); oledbdataadapter1.insertcommand.executenonquery(); oledbconnection1.close(); oledbdataadapter1.fill(dataset11); private void button1_click(object sender, EventArgs e) datagridview1.rows.clear(); for (int i = 0; i < checkedlistbox1.items.count; i++) if (checkedlistbox1.getitemchecked(i)) datagridview1.rows.add(i, checkedlistbox1.items[i]); private void datagridview1_cellclick(object sender, DataGridViewCellEventArgs e) textbox1.text = datagridview1[0, datagridview1.currentcell.rowindex].value.tostring(); textbox2.text = datagridview1[1, datagridview1.currentcell.rowindex].value.tostring(); object prm = System.Reflection.Missing.Value; Excel.Application eksel = new Excel.Application(); Excel.Workbook kitap = eksel.workbooks.add(true);

Excel.Worksheet sayfa = (Excel.Worksheet)kitap.Worksheets.get_Item(1); for (int i = 0; i < datagridview1.rows.count-1; i++) sayfa.cells[i+1, 1] = datagridview1[0,i].value.tostring(); sayfa.cells[i + 1, 2] = datagridview1[1, i].value.tostring(); kitap.saveas("d:\\kayit.xls", Excel.XlFileFormat.xlExcel7, prm, prm, prm, prm, Excel.XlSaveAsAccessMode.xlExclusive, prm, prm, prm, prm, prm); kitap.close(prm, prm, prm); eksel.quit(); System.Diagnostics.Process.Start("D:\\kayit.xls"); private void button1_click(object sender, EventArgs e) richtextbox1.savefile("d:\\zengin.rtf"); if (File.Exists("D:\\zengin.rtf")) richtextbox1.loadfile("d:\\zengin.rtf"); MessageBox.Show("Dosya Bulunamadı"); private void kestoolstripmenuitem_click(object sender, EventArgs e) richtextbox1.cut(); private void kopyalatoolstripmenuitem_click(object sender, EventArgs e) richtextbox1.copy(); private void yapıştırtoolstripmenuitem_click(object sender, EventArgs e)

richtextbox1.paste(); private void yazıtipitoolstripmenuitem_click(object sender, EventArgs e) fontdialog1.showdialog(); richtextbox1.selectionfont = fontdialog1.font; private void zemintoolstripmenuitem_click(object sender, EventArgs e) colordialog1.showdialog(); richtextbox1.selectionbackcolor = colordialog1.color; private void yazıtoolstripmenuitem_click(object sender, EventArgs e) colordialog1.showdialog(); richtextbox1.selectioncolor = colordialog1.color; private void hscrollbar1_scroll(object sender, ScrollEventArgs e) richtextbox1.backcolor = Color.FromArgb(hScrollBar1.Value,hScrollBar2.Value,hScrollBar3.Value); private void hscrollbar2_scroll(object sender, ScrollEventArgs e) richtextbox1.backcolor = Color.FromArgb(hScrollBar1.Value, hscrollbar2.value, hscrollbar3.value); private void hscrollbar3_scroll(object sender, ScrollEventArgs e) richtextbox1.backcolor = Color.FromArgb(hScrollBar1.Value, hscrollbar2.value, hscrollbar3.value); private void button3_click(object sender, EventArgs e) Form2 frm2 = new Form2(); frm2.show();

private void toolstripcombobox1_keydown(object sender, KeyEventArgs e) if (e.keycode == Keys.Enter) webbrowser1.navigate(toolstripcombobox1.text); private void Form2_Load(object sender, EventArgs e) toolstripcombobox1.text = "www.akdeniz.edu.tr"; private void Form2_Activated(object sender, EventArgs e) webbrowser1.navigate(toolstripcombobox1.text); private void toolstripbutton1_click(object sender, EventArgs e) System.Diagnostics.Process.Start("mailto:ali@alicom"); private void toolstriplabel1_click(object sender, EventArgs e) webbrowser1.navigate(toolstripcombobox1.text);

private void button1_click(object sender, EventArgs e) foreach (Control nesne in this.controls) if (nesne is TextBox) (nesne as TextBox).Clear(); foreach (Control nesne in this.controls) if (nesne is CheckBox) if ((nesne as CheckBox).Checked == true) (nesne as CheckBox).Checked = false; (nesne as CheckBox).Checked = true; timer1.enabled = true; int say = 0; private void timer1_tick(object sender, EventArgs e) say=say+1; if (say <= progressbar1.maximum) progressbar1.value = say; label1.text = "%" + say.tostring() + " doldu"; timer1.enabled = false; say = 0; private void progressbar1_mousehover(object sender, EventArgs e)

tooltip1.settooltip(progressbar1, say.tostring()); private void button3_click(object sender, EventArgs e) int resim = 0; string[] klasor = Directory.GetDirectories("D:\\"); foreach (string x in klasor) listview1.items.add(x, resim); resim++; if (resim == ımagelist1.images.count) resim = 0; private void kapattoolstripmenuitem_click(object sender, EventArgs e) Application.Exit(); private void button1_click(object sender, EventArgs e) StreamWriter dosya = File.AppendText("D:\\son.txt"); dosya.write(textbox1.text+","); dosya.write(textbox2.text + ","); dosya.writeline(textbox3.text); dosya.close(); yukle(); kontrol(); private void Form2_Load(object sender, EventArgs e) if(file.exists("d:\\son.txt"))

StreamReader dosya = File.OpenText("D:\\son.txt"); dosya.close(); StreamWriter dosya = File.CreateText("D:\\son.txt"); dosya.close(); public void yukle() datagridview1.rows.clear(); int i = 0; StreamReader dosya = File.OpenText("D:\\son.txt"); string s = dosya.readline(); while (s!= null) string[] son = s.split(','); i++; datagridview1.rows.add(son[0], son[1], son[2]); s = dosya.readline(); dosya.close(); public void kontrol() for (int i = 0; i < datagridview1.rowcount; i++) if (Convert.ToDouble(dataGridView1.Rows[i].Cells[2].Value) > 200) datagridview1.rows[i].cells[2].style.backcolor = Color.Blue; yukle();

private void button1_click(object sender, EventArgs e) listbox1.items.add(textbox1.text); listbox2.items.add(textbox2.text); listbox3.items.add(textbox3.text); listbox4.items.add(textbox4.text); listbox5.items.add(textbox5.text); textbox1.clear(); textbox2.clear(); textbox3.clear(); textbox4.clear(); textbox5.clear(); textbox1.focus(); int soru; soru = 0; label6.text = listbox1.items[soru].tostring(); radiobutton1.text = listbox2.items[soru].tostring(); radiobutton2.text = listbox3.items[soru].tostring(); radiobutton3.text = listbox4.items[soru].tostring(); timer1.enabled = true; int dogru, yanlıs, bos; private void timer1_tick(object sender, EventArgs e) if (radiobutton1.checked == true) listbox6.items.add("a"); radiobutton1.checked = false; if (radiobutton2.checked == true) listbox6.items.add("b"); radiobutton2.checked = false; if (radiobutton3.checked == true) listbox6.items.add("c"); radiobutton3.checked = false; listbox6.items.add("boş"); soru = soru + 1; if (soru < listbox1.items.count)

label6.text = listbox1.items[soru].tostring(); radiobutton1.text = listbox2.items[soru].tostring(); radiobutton2.text = listbox3.items[soru].tostring(); radiobutton3.text = listbox4.items[soru].tostring(); timer1.enabled = false; MessageBox.Show("Sınav Bitti"); for (int i = 0; i < listbox5.items.count; i++) if (listbox5.items[i].tostring() == listbox6.items[i].tostring()) dogru = dogru + 1; if (listbox6.items[i].tostring() == "BOŞ") bos = bos + 1; yanlıs = yanlıs + 1; MessageBox.Show("Doğru=" + dogru.tostring() + " Yanlış=" + yanlıs.tostring() + "Boş=" + bos.tostring()); DialogResult cevap; cevap = MessageBox.Show("Devam Edecekmisiniz?", "Uyarı", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (cevap == DialogResult.No) Application.Exit(); private void button1_click(object sender, EventArgs e) listbox1.items.add(textbox1.text); textbox1.clear(); textbox1.focus(); private void listbox1_selectedindexchanged(object sender, EventArgs e) textbox1.text = listbox1.selecteditem.tostring();

try if (listbox1.items.count > 0) for (int i = 0; i <= listbox1.items.count; i++) listbox2.items.add(listbox1.items[i].tostring()); listbox1.items.clear(); for (int i = 0; i < listbox2.items.count; i++) listbox1.items.add(listbox2.items[i].tostring()); listbox2.items.clear(); catch MessageBox.Show("Olmayan bir index numarası"); private void button3_click(object sender, EventArgs e) if (listbox1.selectedindex == -1) MessageBox.Show("Bir İl Seçiniz", "Uyarı", MessageBoxButtons.YesNo, MessageBoxIcon.Question); MessageBox.Show(listBox1.SelectedItem.ToString()); private void button4_click(object sender, EventArgs e) try DialogResult kontrol; kontrol = MessageBox.Show("Çıkmak İstiyormusunuz?", "Kontrol", MessageBoxButtons.YesNo); if (kontrol == DialogResult.Yes) Application.Exit(); MessageBox.Show("Hayır a basıldı"); catch MessageBox.Show("Problem ama önemli değil sen çalışmaya devam et");

private void button1_click(object sender, EventArgs e) if (listbox1.selectedindex == -1) MessageBox.Show("seç", "hata", MessageBoxButtons.OK, MessageBoxIcon.Error); return; listbox2.items.add(listbox1.selecteditem); listbox1.items.removeat(listbox1.selectedindex); for (int i = 0; i < listbox1.items.count; i++) listbox2.items.add(listbox1.items[i].tostring()); listbox1.items.clear(); private void button3_click(object sender, EventArgs e) listbox3.items.clear(); for (int i = 0; i<checkedlistbox1.items.count; i++) if (checkedlistbox1.getitemcheckstate(i) == CheckState.Checked) listbox3.items.add(checkedlistbox1.items[i].tostring()); private void button4_click(object sender, EventArgs e) for (int i = 0; i < checkedlistbox1.items.count; i++) checkedlistbox1.setitemcheckstate(i, CheckState.Checked); private void button5_click(object sender, EventArgs e) if (radiobutton1.checked == true) MessageBox.Show("1");

if (radiobutton2.checked == true) MessageBox.Show("2"); if (radiobutton3.checked == true) MessageBox.Show("3"); if (radiobutton4.checked == true) MessageBox.Show("4"); private void button6_click(object sender, EventArgs e) timer1.enabled = true; int i = 0; private void timer1_tick(object sender, EventArgs e) i = i + 1; this.text = i.tostring(); private void button7_click(object sender, EventArgs e) listbox1.setselected(1,true); OleDbConnection baglan = new OleDbConnection(); OleDbDataAdapter adaptor = new OleDbDataAdapter(); OleDbCommand komut = new OleDbCommand(); DataTable dt = new DataTable(); int id; private void Form1_Load(object sender, EventArgs e) baglan.connectionstring="provider=microsoft.jet.oledb.4.0;data Source=" + Application.StartupPath + "\\urun.mdb"; adaptor=new OleDbDataAdapter("Select * from urun", baglan); liste(); public void liste() dt.clear();

adaptor.fill(dt); datagridview1.datasource = dt; private void button1_click(object sender, EventArgs e) komut.connection = baglan; komut.commandtype = CommandType.Text; komut.commandtext = "insert into urun(ad,marka,fiyat) values('"+textbox1.text+"','"+textbox2.text+"',"+textbox3.text+")"; baglan.open(); komut.executenonquery(); baglan.close(); liste(); private void button4_click(object sender, EventArgs e) baglan.connectionstring = "Provider=Microsoft.Jet.Oledb.4.0;Data Source=" + Application.StartupPath + "\\urun.mdb"; adaptor = new OleDbDataAdapter("Select * from urun where ad like '"+textbox1.text+"'", baglan); liste(); private void textbox2_textchanged(object sender, EventArgs e) //baglan.connectionstring = "Provider=Microsoft.Jet.Oledb.4.0;Data Source=" + Application.StartupPath + "\\urun.mdb"; //adaptor = new OleDbDataAdapter("Select * from urun where marka like '%" + textbox2.text + "%'", baglan); //liste(); private void datagridview1_cellclick(object sender, DataGridViewCellEventArgs e) int satir; satir = datagridview1.currentcell.rowindex; textbox1.text = datagridview1[1, satir].value.tostring(); textbox2.text = datagridview1[2, satir].value.tostring(); textbox3.text = datagridview1[3, satir].value.tostring(); id = Convert.ToInt16(dataGridView1[0, satir].value.tostring()); komut.connection = baglan; komut.commandtype = CommandType.Text; komut.commandtext = "update"; baglan.open(); komut.executenonquery(); baglan.close(); liste(); private void button3_click(object sender, EventArgs e) komut.connection = baglan; komut.commandtype = CommandType.Text; komut.commandtext = "delete from urun where id="+id; baglan.open(); komut.executenonquery(); baglan.close(); liste();

private void button1_click(object sender, EventArgs e) StreamWriter Dosya = File.AppendText("D:\\dosya.txt"); Dosya.Write(textBox1.Text+","); Dosya.Write(textBox2.Text + ","); Dosya.WriteLine(textBox3.Text); Dosya.Close(); liste(); private void Form1_Load(object sender, EventArgs e) try StreamReader Dosya = File.OpenText("D:\\dosya.txt"); Dosya.Close(); catch StreamWriter Dosya=File.CreateText("D:\\dosya.txt"); Dosya.Close(); public void liste() listbox1.items.clear(); listbox2.items.clear(); listbox3.items.clear(); StreamReader dosya = File.OpenText("D:\\dosya.txt"); string s = dosya.readline(); while (s!= null) string[] son = s.split(','); listbox1.items.add(son[0]); listbox2.items.add(son[1]); listbox3.items.add(son[2]); s = dosya.readline(); dosya.close(); liste(); private void button3_click(object sender, EventArgs e) string resim; openfiledialog1.filter="resim dosyası *.jpg"; openfiledialog1.showdialog(); resim = openfiledialog1.filename; picturebox1.image = Image.FromFile(resim);