You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ImportsSystem.Data.OleDbPublicClassfrmMainPrivateSubfrmMain_Load(senderAsObject,eAsEventArgs)HandlesMyBase.LoadDimbagAsString="Provider= Microsoft.Jet.Oledb.4.0; Data Source=veritabani.mdb"DimsorguAsString="select * from kitap"DimybagAsNewOleDbConnection(bag)DimyerialAsNewOleDbDataAdapter(sorgu,ybag)DimytabloAsNewDataTable()DimyolAsNewDataSet()yerial.Fill(yol,"sanalTable")yol.Tables.Add(ytablo)BindingSource1.DataSource=yolBindingSource1.DataMember=yol.Tables(0).TableNameDataGridView1.DataSource=BindingSource1TextBox1.DataBindings.Add("text",BindingSource1,"kitapadi")TextBox2.DataBindings.Add("text",BindingSource1,"adeti")TextBox3.DataBindings.Add("text",BindingSource1,"fiyati")EndSubEndClass
Uygulama 2
ImportsSystem.Data.OleDbPublicClassfrmMainDimbaglantiAsNewOleDbConnection("Provider= Microsoft.Jet.Oledb.4.0; Data Source=C:\veritabani.mdb")PrivateSubfrmMain_Load(senderAsObject,eAsEventArgs)HandlesMyBase.LoadEndSubPrivateSubbtnSave_Click(senderAsObject,eAsEventArgs)HandlesbtnSave.ClickEndSubEndClass
PublicClassForm1PrivateSubbtn_result_Click(senderAsObject,eAsEventArgs)Handlesbtn_result.Click'Dim nesne_ismi As New DLL_deneme.Class1()'MsgBox(nesne_ismi.HesapMakinesi("+", 10, 2))'Module2'Dim sonuc As Integer'sonuc = WinExec("c:\Windows\System32\NotePad.exe", 9)'Module3DimyoluAsStringDimuzunAsIntegeryolu=".........."uzun=GetWindowsDirectory(yolu,Len(yolu))MessageBox.Show(yolu)EndSubEndClass
uygulama2
PublicClassForm1'+Vize final yapılcak.'+Büt 70 altı kalacak btn basılınca word yada excel açılcak. 'Inputla alınan program ismine göre. Buton tıklanınca program kapatılcak. 'Açılacak olan programlar veya makine kapatacak program api ile yapılcak.PrivateSubForm1_Load(senderAsObject,eAsEventArgs)HandlesMyBase.LoadlblButunleme.Visible=FalsetbButunleme.Visible=FalseEndSubPrivateSubbtn_result_Click(senderAsObject,eAsEventArgs)Handlesbtn_result.ClickDimvize1AsInteger=Convert.ToInt32(tbVize1.Text)Dimvize2AsInteger=Convert.ToInt32(tbVize2.Text)DimfinalAsInteger=Convert.ToInt32(tbFinal.Text)Dimnesne_ismiAsNewdll_NotHesaplama.Class1()DimsonucAsInteger=nesne_ismi.hesapla(vize1,vize2,final)MsgBox(sonuc)Ifsonuc<=70ThenlblButunleme.Visible=TruetbButunleme.Visible=TrueEndIfEndSubEndClass
ImportsSystem.Data.OleDbPublicClassForm1DimcommandAsNewOleDbCommandPrivateSubbtn_Save_Click(senderAsObject,eAsEventArgs)Handlesbtn_Save.ClickDimvizeAsInteger=CInt(TextBox1.Text)DimfinalAsInteger=CInt(TextBox2.Text)Dimnesne_ismiAsNewClass1(vize,final)DimortalamaAsInteger=nesne_ismi.hesapla()lblSonuc.Text=ortalamalblSonuc.Visible=TrueLabel3.Visible=TrueEndSubPrivateSubdb_to_xml_Click(senderAsObject,eAsEventArgs)Handlesdb_to_xml.ClickDimconAsNewOleDbConnection("Provider= Microsoft.Jet.Oledb.4.0; Data Source=veritabani.mdb")con.Open()command.Connection=concommand.CommandType=CommandType.Textcommand.CommandText="INSERT INTO (vize,final,ortalama) values ("+vize+","+final+","+ortalama+","+")"command.ExecuteNonQuery()con.Close()EndSubPrivateSubForm1_Load(senderAsObject,eAsEventArgs)HandlesMyBase.LoadlblSonuc.Visible=FalseLabel3.Visible=FalseEndSubEndClass
Hafta7 (Api)
uygulama1
ImportsMicrosoft.Office.InteropPublicClassForm1Dimword_uygulamaAsNewWord.ApplicationDimword_dokumanAsNewWord.DocumentPrivateSubbtn_word_open_Click(senderAsObject,eAsEventArgs)Handlesbtn_word_open.Clickword_dokuman=word_uygulama.Documents.Addword_uygulama.Visible=TrueEndSubPrivateSubword_InsertAfter_Click(senderAsObject,eAsEventArgs)Handlesword_InsertAfter.Clickword_dokuman.Range().InsertAfter("Okay")EndSubPrivateSubword_InsertBefore_Click(senderAsObject,eAsEventArgs)Handlesword_InsertBefore.Clickword_dokuman.Range().InsertBefore("Can ")EndSubPrivateSubword_Paragraphs_add_Click(senderAsObject,eAsEventArgs)Handlesword_Paragraphs_add.Clickword_dokuman.Paragraphs.Add()word_dokuman.Range().InsertAfter("9 eylül üni lorem iplusum ")EndSubEndClass
PublicClassForm1'soru: imyo muhasebe vergi iadesi hesaplayan program istedi.'+İstekler: Hesaba dahil edilecek olan fiş sayısı input ile belirlenecek. '+belirlenen sayı kadar vergi iadesi için aşağıdaki bilgiler girilcek.'+1. tarih'+2. fiş alınan yer'+3. miktarı'değerler alındıktan sonra kişinin net maaşına fişlerin toplamının 30% ilave edilerek ödeme yapılacaktır. 'Koşul: Hesap işlemleri .dll ile yapılcak.'Koşul: Bütün bilgiler veri tabanına kaydedilsin.'Koşul: Veri tabanındaki bilgiler button tıklamasıyla word dosyasına aktarılsın.Dimfis_countAsIntegerPrivateSubForm1_Load(senderAsObject,eAsEventArgs)HandlesMyBase.Loadfis_count=InputBox("Fiş sayısı girin")Dimfis_tarih(fis_count)AsStringDimfis_konum(fis_count)AsStringDimfis_miktar(fis_count)AsIntegerDimfis_sumAsInteger=0DimiAsIntegerFori=1Tofis_countfis_tarih(i)=InputBox("Fiş tarihini girin")fis_konum(i)=InputBox("Fiş konumunu girin")fis_miktar(i)=CInt(InputBox("Fiş miktarını girin"))fis_sum+=fis_miktar(i)NextDimnet_maasAsInteger=CInt(InputBox("Kişinin net maaşını girin"))Dimsonuc_maasAsInteger=net_maas*(fis_sum*0.3)MessageBox.Show(sonuc_maas)EndSubEndClass