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

Size: px
Start display at page:

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

Transcription

1 "!#... $ %&'... )*! "!# )+, -./ 01 $ ) 1+ 2#3./ 01 %.. 7# 89 ; )! 5/< 3! = ;, >! 5 6/.?<3 893@ AB 3 C2 5!2#! D. 5 P "Q32 ( Buttons) //E FG. 5Q 9R " )-S )!EP 5+G ),. 5 % R! " T0U )!EP 5+G ),. 5 P "9# )!EP 5+G ), T0U )$! DataGrid )$V C2 WU ) D 5 -!2#! WU. )! 5/< )Q^ ) 2$ WU )$! = WU 7_ % P C2 "9# )`P! C a^ b b$!s / C2 = % 7! ; % 2#& 7! 1 7! b C c b... d#! 7! < Q9! d D#9 b $! % )#_G )!# F^'S e2<9 7!! / f!?' g2 f&@<' 7! "$ b 01 ",! $..!S )9. MyData S dm.. MS Access ;, $9! 7! 5 FG Q )9 %.. ) QU C2 ou9 1 (Table1) S 6Q R C2 5 ou& "QU > "QU Text Name Text City Text Mobile Name City 2 ) )- B # Q Mobile Auday Basrah Ammar Baghdad Hadi Muthanna Kasim Basrah husien Hila fm Q.. 9R >G! FG Q "*G Q bs. Bin 2 "' Debug 2 % 7! 2! ;+ C 5 "Q3 Q b %1 ) 5^ %29, AB 3 < Q bs.

2 True ) Q 3 & ( "9 / )39 P )2Q )?<3 893@ b C 31 5/VS /&.. d )# ReadOnly... 5+G )$ bs.. ) 5+G $ )!# U9< % Imports System.Data Imports System.Data.OleDb Form1 2 Public Class - ) 5+G )$ Q B #. ;, $9? m! C2 ou9 1 %< *! f C2 ConStr * 9# Q 31 o0 %U / Application.StartupPath 3! = 5 /! 9U Q 0,. 3 )@ 5 3, = 7! f3! " #9 )2 " $& %$ ConStr * f / b C AU9 1 5Q 6 "R! Conn 9# 3 B #... /< 5Q 6.. Table1!2#! ), " U Q& 5/ %d SQLstr!.. 5+G ), " $ bs.. %29, 5+G $ Rm! Q AB 3 C2 Q3 /

3 Conn 0, SQLstr % )m SQL )2 R f / b AU9 o0 DataAdapter 9# 3 b #. DataAdapter1 )# Fill )@ Table1 2 )# DataSet1 2 Q.. 5! )P <&S e+ %d Conn.Close Conn.Open!. DataSet1 "' Table1!2#! ), Q <&S )2 d bs C. d2 D# %$ 5Q TextBoxes?<3 893@ 6/ "R! )!EP 5+G )$ Q bs 5 C2 9 2 *& o C3# = d#! "!#3 3 = DataSet1 ) # 3 b # )`P!.. DataSet1 C2 )2@S %29, 5Q?<3 893@ 6 )!EP 5+G )$ bs #.. eu@ "$G f2!,2 7! )& $ 9 = 31 )9* D 5Q <& " 9.. 7! 50 3 d`.. 7! "*G e&+ )! F5 C2 Q3 %29,?<3 893@ C2 0

4 b W.. 5 % 5R D# %, %U f#- 7! b = 7!2 3`P! P'!.. 6Q S " 3 D#9 7!.. //ES C2 Q3 P'! 5 P "Q32 )!EP 5+G ), %1 ) 5^ Q3 ) 5+G $ ( S " ) /m C2 Rm! Q Q3.. S " C QP B +@ 1 P! "# 3 P 5+G )`P! P'! ) 5+G $ ( 8 " ) /m C2 Q3 bs %29, ( % ") /m2 5+G $ /Q %U "! 59E?Q Q 3 P % " 8 " 9/m %&+G 3&1G! P'!. g2^ "2 "Q3 %$ %29, d$3 ( 'S ") /m 5+V! < %2$ P # o! %U "! 32#R 3 P..! Count )@! +@! # & Position )@ b 1

5 P "Q32 //ES C2 Q3 )& 7! "*G Q.. P "Q3 5+V d 31 C. P "Q3 //E %U "! D %1 ) 5^ 5+G )9d % % FRS )$ Q. P "Q3 //! /E ", 5+V % FRS 01 F Q B # " U& )9 3 %U "! D Form1_Load AB 3 " U& 5+V % FRS F Q 0,. 7!... %29, 7!2 )2$ 5+G b$& Imports System.Data Imports System.Data.OleDb Public Class Form1 Dim ConStr As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source =" & Application.StartupPath & "\MyData.mdb" Dim Conn As New OleDbConnection(ConStr) Dim DataSet1 As New DataSet Dim SQLstr As String = "SELECT * FROM Table1" Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Conn.Open() Dim DataAdapter1 As New OleDbDataAdapter(SQLstr, Conn) DataAdapter1.Fill(DataSet1, "Table1") Conn.Close() TextBox1.DataBindings.Add("Text", DataSet1, "Table1.Name") TextBox2.DataBindings.Add("Text", DataSet1, "Table1.City") TextBox3.DataBindings.Add("Text", DataSet1, "Table1.Mobile") ChangePosition() Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Me.BindingContext(DataSet1, "table1").position = 0 ChangePosition() Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Me.BindingContext(DataSet1, "table1").position -= 1 ChangePosition() Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Me.BindingContext(DataSet1, "table1").position += 1 ChangePosition() Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.BindingContext(DataSet1, "table1").position = Me.BindingContext(DataSet1, "table1").count - 1 ChangePosition() Public Sub ChangePosition() Label4.RightToLeft = Windows.Forms.RightToLeft.Yes Label4.Text = "ABCDE " & Me.BindingContext(DataSet1, "table1").position & _ " FG " & Me.BindingContext(DataSet1, "table1").count - 1 End Class %U "! D# Q9 Label4 b P.. P "Q3 3$! f P.. 7! )& $ 9 bs.. )UU@ 5/< 2

6 5Q 9R " )- )2 C "Q33 bs ) )Q9^ & %3$ = )-S )2 & /$S! 9# R&?<3 893@ ;+ C2 ou9 2 9R AB D ( 9R " )- ) /E C2 Q39!3. 59!2# d $9 b ^9 %$ ) / d3$ )dr C >R 5 C )- 9 cq 3 ( + ) 1 9/E C2 AB 3 ou #. )-S )2 # Q b )_ )dr2 >R 9 f2 Q3 3 W (F* ) d 'S /m! = )_.. ) /< %!, >G 2 9R AB )- Q bs.. ) /< %, 9R AB )-.. Add /m C2 Q3 Windows Form / b # %29, AB 3 < Q 3

7 š AB 3 D# Q9 %$ ( 9R " )- ) /m C 5+G )- Q3 bs %29, 5+G $ +! Q /m C2 Q3 Imports System.Data Imports System.Data.OleDb Public Class Form2 Dim frm1 As New Form1 AB 3 "'! š AB 3 F ^ %$ Form2 f C2 frm2 9# 3 cp 5+G %. Hide )@ AB 3 F+' Q B #.. Show )@.. š AB 3 C "Q3 bs %29, d9d % 5+G )$ Q š AB 3 % Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try Dim SavInto As New OleDb.OleDbCommand Dim ConStr As String = _ "Provider=Microsoft.Jet.OLEDB.4.0; Data Source =" & _ Application.StartupPath & "\mydata.mdb" Dim Conn As New OleDbConnection(ConStr) SavInto.Connection = Conn SavInto.CommandType = CommandType.Text SavInto.CommandText = "INSERT INTO Table1(Name,City,Mobile)" & _ "values ('" & TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "') " Conn.Open() SavInto.ExecuteNonQuery() Conn.Close() MsgBox("IJBKL MJNJOPDE QRSJT U VWXE Y Z[J\]E ZO^_S `a") Me.Close() frm1.show() Catch ex As Exception Exit Sub End Try Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Me.Close() frm1.show() End Class.. 5+G )G3! C %& bs. 9R <& " # Q = S AB 3 % 5Q <&S C2 #S AB 3 01 % 3 = % e-, 5+G 1G 0 Imports System.Data Imports System.Data.OleDb.. # e9/< % AB 3 )9 % AB 3 F ^3 Form1 f C2 frm1 9# 3 B #. F^'S )# Try Cash 3! B # 4

8 5 C?<3 % 5R!2# )- 5Q <&S " # %1 ) +G. INSERT %d INSERT 5/#2 )!# )*<! INSERT INTO Table1(Field1,Field2,Field3) values ('val1','val2','val3') AB 3 F+' S AB 3 F! <&S ap Q 5 C 59 )- & b #. %U.. F5 C2 Q3 = >G g b 33$ 9 bs AB F+' š AB D.. 9R " )- /E C2 Q3 9 AB 3 % )!2# $ samer Baghdad /E Q3 P3 " ' C "Q3 %$ ( 'S " ) /m C2 Q.. AB 3 C >R )-S AB F+'. f D# %2$ P / E Label4 b P,... 59!2# )- & f )- P3 = F* /E C2 Q3 1# 59R!2#! )- Q 9R " )- /E C2 Q3 # b $ 9. 5 C!2# " 1 f0 o0 " b C 5/VS /&.. 5! " T0U )!EP 5+G )$ Q bs..?<3 893@ % D# %U ) 5+G )$ Q Rm! Q ( " T0 ) /m C2 Q3 If MsgBox("bJXE ABCDE cde Rfgh Ai", MsgBoxStyle.OkCancel) = MsgBoxResult.Cancel Then Exit Sub Dim SavInto As New OleDb.OleDbCommand Dim DataAdapter1 As New OleDbDataAdapter(SQLstr, Conn) SavInto.Connection = Conn SavInto.CommandType = CommandType.Text SavInto.CommandText = "DELETE FROM Table1 WHERE mobile ='" & _ Trim(TextBox3.Text) & "'" Conn.Open() SavInto.ExecuteNonQuery() DataSet1.Clear() DataAdapter1.Fill(DataSet1, "Table1") Conn.Close() MsgBox("IJBKL MJNJOPDE QRSJT U cdxe ZO^_S `a") ChangePosition() bs d Q 9,& )2 %1 = )/ a3@ )^ %U " T0 99 b, b )9 %.. 5V! T0 & < b /m C2 Q39.. ( Q3 ) FRS! A T0 99S b, b.. T0U )2 &S DELETE 13# T0 b 99 b, b! C2 0.. fg& b $ 9S "9 / b / % "QU, Mobile "QU 3! 3 5/VS /&. T0U )2 "R! )@ c01 % "9 / f! ( %S + 5 C 9! ) /$9S 9 / d3! "$ P Q b $ 9. T0U )2 % d- 9 % P eu< %$ B 5+G )9d % ChangePosition FRS 3 3 P 0,. Label4 Q b =,& )/ D#9 3 7! b P P T0U Q ) Q b 33$ 9 bs. _d 5! %U " T0 )2 & OK C2 R! " C2 "9#... R! " T0 = 9R " )- )@ 5+G 32, b #.. R! " "9# )@ 5+G ), C bs %& 5

9 1 %2$ AB 3 b$ Q 3 2#&, >G C 9R AB )- )9 % Q.. %29, AB 3 < Q (%+! "Q) o& f )# Text )@' o0 Label4 )# False o& Visible )@ "# Q b 9.. (( fu- cp 5/< % b2 f &)).. Label 01 5_ P3./ V P'!.. ( %U " "9#& ) /m2 Q3 U ) 5+G $ AB 3 C 10 bs Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click Dim frm3 As New Form3 frm3.textbox1.text = Me.TextBox1.Text frm3.textbox2.text = Me.TextBox2.Text frm3.textbox3.text = Me.TextBox3.Text frm3.label4.text = Me.TextBox3.Text frm3.show() Me.Hide().. AB 3 F ^3 Form3 f C2 frm3 9# 3 31?<3 893@ % D# 32 )9! AB 3 %?<3 893@ % D# 3 "# b 9 B #.. %U " ) C2 "9# 99 bs.. AB 3 % TextBox3.Text ) o& Label4.Text ) 32#R B # 1*& 9 b " ( 5 %S + ) %1 ) QU ) C UpDate "9# 5/ % AU 3. +! c32#r Label4 3! 0d.. "! = eu< %! g2s ; 1 %U 32 Mobile "QU ) "Q3 )! /$S! 9# R&, b "R! Module b 33$ )#^ )U %! = -! ; % 2#& 3! b, c3#& 33$.. )9U >G % AB 3 R * "Q3 Q Imports System.Data Imports System.Data.OleDb Public Class Form3 Dim frm As New Form1 %29, d9d % f )@ 5+G $ AB 3 C 10 bs Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim n As String = Label4.Text Dim SavInto As New OleDb.OleDbCommand Dim ConStr As String = _ "Provider=Microsoft.Jet.OLEDB.4.0; Data Source =" & _ 6

10 Application.StartupPath & "\mydata.mdb" Dim Conn As New OleDbConnection(ConStr) SavInto.Connection = Conn SavInto.CommandType = CommandType.Text SavInto.CommandText = "UPDATE Table1 SET name = '" & Trim(TextBox1.Text) & "',City = '" & _ Trim(TextBox2.Text) & "', mobile= '" & Trim(TextBox3.Text) & "' WHERE mobile ='" & n & "'" Conn.Open() SavInto.ExecuteNonQuery() Conn.Close() MsgBox("IJBKL MJNJOPDE QRSJT U VWXE Y Z[J\]E ZO^_S `a") Me.Close() frm.show() Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Me.Close() frm.show() End Class UPDATE 5/ % TP'S.. )-S AB 5+V ), % g2s ;+ 3#& 3 P, %1 d )!# )*< UPDATE Table1 SET Field1 = 'value', Field2 = 'value', Field3 ='value' WHERE Field = 'value'. 1*& " Mobile "QU ) WHERE # 3! C2 Q3 7! "*G& P'! bs AB 3 ) Q b 33$ 9.. %U " C2 "9# 5+V d 31 C 9 )/ a3@ /d P + Q3 Q "9# Q.. " ;+ D 9 f P.. "9#& /E.. 3 & "9# )2 b WU.. WU )2 % ' 39 CQ9 3! % _ 2, 3 )2 c01 C.. 9R AB ) Q.. )3#! )!2#! WU 3 2 # )+, )! 5` 0'3 ) ^ f#! 3 3 =WU AB f d`9... WU /E Q39!3. ( "9 = )39 = S ) f WU g2^ "QU 9U Q9.. ( = ) 2$2 8^! ) WU )Q9 9U Q9.š. d3 WU ) 2$ "'9..( WU ) /E C2 Q39.ª. DataGridView D )$V C2 WU ) D &.«.?<3 893@ C2 %U " D 9.. ("9# = T0U) o/e ("#+&= WU) /E "#+& F* 9.. (F* = + ) o/e "+& = ("9#& = T0U) o/e "#+& F* 9 = ("9#&) /E C2 Q39!3. o/e " #+& ( F* = + ) o/e " #+& F* 9 = )2 # %*29 %U " "9#& " $9!3.. ( "9#& = T0 ) AB % ( WU) /m Q3 % ) 5+G )$ Q bs Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click Dim frm4 As New Form4 frm4.show() Me.Hide(). %U AB 3 F+' Form4 WU AB D# Q& %1 ) 5/< %, ª AB < Q.7

11 %29, d9d % AB 3 5+V $ bs Imports System.Data Imports System.Data.OleDb Public Class Form4 Dim frm As New Form1 Dim ConStr As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source =" & Application.StartupPath & "\MyData.mdb" Dim Conn As New OleDbConnection(ConStr) Dim DataSet1 As New DataSet Dim SQLstr As String Dim m As String Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Static m As Integer = 0 If TextBox1.Text = Trim("") Then Exit Sub If RadioButton4.Checked = True Then ExactSearch() ElseIf RadioButton5.Checked = True Then GeneralSearch() Conn.Open() Dim DataAdapter1 As New OleDbDataAdapter(SQLstr, Conn) DataAdapter1.Fill(DataSet1, "Table1") Conn.Close() TextBox2.DataBindings.Add("Text", DataSet1, "Table1.Name") TextBox3.DataBindings.Add("Text", DataSet1, "Table1.City") TextBox4.DataBindings.Add("Text", DataSet1, "Table1.mobile") DataGridView1.DataSource = DataSet1 DataGridView1.DataMember = "Table1" Button1.Enabled = False If Me.BindingContext(DataSet1, "Table1").Count = 0 Then MsgBox("No Result, Please Try Again ")

12 Exit Sub Button2.Enabled = True Button3.Enabled = True Public Sub ExactSearch() If RadioButton1.Checked = True Then SQLstr = "SELECT * FROM Table1 WHERE name = '" & TextBox1.Text & "'" ElseIf RadioButton2.Checked = True Then SQLstr = "SELECT * FROM Table1 WHERE City = '" & TextBox1.Text & "'" ElseIf RadioButton3.Checked = True Then SQLstr = "SELECT * FROM Table1 WHERE mobile = '" & TextBox1.Text & "'" Public Sub GeneralSearch() If RadioButton1.Checked = True Then SQLstr = "SELECT * FROM Table1 WHERE name LIKE '%" & TextBox1.Text & "%'" ElseIf RadioButton2.Checked = True Then SQLstr = "SELECT * FROM Table1 WHERE City LIKE '%" & TextBox1.Text & "%'" ElseIf RadioButton3.Checked = True Then SQLstr = "SELECT * FROM Table1 WHERE mobile LIKE '%" & TextBox1.Text & "%'" Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click Me.Close() frm.show() Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click If MsgBox("bJXE ABCDE cde Rfgh Ai", MsgBoxStyle.OkCancel) = MsgBoxResult.Cancel Then Exit Sub Dim adapter2 As New OleDbDataAdapter(SQLstr, Conn) Dim SavInto As New OleDb.OleDbCommand SavInto.Connection = Conn SavInto.CommandType = CommandType.Text SavInto.CommandText = "DELETE FROM Table1 WHERE Mobile ='" & Trim(TextBox4.Text) & "'" Conn.Open() SavInto.ExecuteNonQuery() DataSet1.Clear() adapter2.fill(dataset1, "Table1") Conn.Close() Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Button4.Enabled = True Button5.Enabled = True Button3.Enabled = False Button2.Enabled = False TextBox2.ReadOnly = False TextBox3.ReadOnly = False TextBox4.ReadOnly = False m = TextBox4.Text Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Dim SavInto As New OleDb.OleDbCommand Dim adapter2 As New OleDbDataAdapter(SQLstr, Conn) SavInto.Connection = Conn SavInto.CommandType = CommandType.Text SavInto.CommandText = "UPDATE Table1 SET name = '" & Trim(TextBox2.Text) & "', City = '" & Trim(TextBox3.Text) & "', Mobile = '" & Trim(TextBox4.Text) & "' WHERE Mobile ='" & m & "'" Conn.Open() SavInto.ExecuteNonQuery() Conn.Close() Button4.Enabled = False Button5.Enabled = False Button3.Enabled = True Button2.Enabled = True TextBox2.ReadOnly = True TextBox3.ReadOnly = True TextBox4.ReadOnly = True./

13 Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click Button4.Enabled = False Button5.Enabled = False Button3.Enabled = True Button2.Enabled = True TextBox2.ReadOnly = True TextBox3.ReadOnly = True TextBox4.ReadOnly = True End Class If TextBox1.Text = Trim("") Then Exit Sub.. 5+G! ) d FmRS )G3! C %&3 bs <Button1> ( WU ) /E 5+V C %&.. f3 WU2 3 a3@ % ' b, Q )9 %. FRS! A 9 13 #! ' Q9 b SQL 5/ )*@ U 01 bs.. ( = ) 2$2 8^! ).. 1 WU! o T# b 9 B #.. dp'! WU )2 % _RS F Q WU ) 9U #& B # )Q^ ) 2$ WU2 ExactSearch FRS! Public Sub ExactSearch() If RadioButton1.Checked = True Then SQLstr = "SELECT * FROM Table1 WHERE name = '" & TextBox1.Text & "'" ElseIf RadioButton2.Checked = True Then SQLstr = "SELECT * FROM Table1 WHERE City = '" & TextBox1.Text & "'" ElseIf RadioButton3.Checked = True Then SQLstr = "SELECT * FROM Table1 WHERE mobile = '" & TextBox1.Text & "'".0 # WU2 GeneralSearch FRS Public Sub GeneralSearch() If RadioButton1.Checked = True Then SQLstr = "SELECT * FROM Table1 WHERE name LIKE '%" & TextBox1.Text & "%'" ElseIf RadioButton2.Checked = True Then SQLstr = "SELECT * FROM Table1 WHERE City LIKE '%" & TextBox1.Text & "%'" ElseIf RadioButton3.Checked = True Then SQLstr = "SELECT * FROM Table1 WHERE mobile LIKE '%" & TextBox1.Text & "%'" )9! )3 b$& b U )Q^ WU 3 W.. LIKE ) 2$ % 1 # 8^ FRS a+ P. WU a3@ % 32 )dg! b$& ) 2, o WU3 # WU %! =?<3 a3@ % "' 32. ( "9 = )39 = S ) f WU 2 o0 "QU!, _RS P, %. Q! 19U& & % SQL )2 #& DataSet1 TextBox2.DataBindings.Add("Text", DataSet1, "Table1.Name") TextBox3.DataBindings.Add("Text", DataSet1, "Table1.City") TextBox4.DataBindings.Add("Text", DataSet1, "Table1.mobile") DataGridView1.DataSource = DataSet1 DataGridView1.DataMember = "Table1" 2! 5Q <&S Q B #?<3 893@ % )3 D# 9 D )$V % d-.. WU ) % P R&, b, 1#.. WU /E "#+& F* Q If Me.BindingContext(DataSet1, "Table1").Count = 0 Then MsgBox("No Result, Please Try Again ") Exit Sub #9 b 9 WU2 ) R # d c 2 f3& )/ D# 13 WU ) % P R& b. 9R! WU. ( T0U = "9# ) o/e "#+&?<3 893@ )$V C2 d WU2 ) R b! Button2.Enabled = True Button3.Enabled = True... Q! dv & % S AB 3 % " T0 5+G! & )Q^! %d " T0 5+V!.( %U " "9#&) /E C2 Q3 3 f2#+& 9 o0.. ( + ) /E % d$ Q 3 = R! " "9#& 5+V!

14 "#+ (%U " "9#& = %U " T0 ) o/e "#+& F* Q 3 = ( %U " "9#& ) /E C2 Q3 3. ( ReadOnly = False ) "9#2 )2?<3 893@ "# 0,.. ( F* = + ) 9/m ;$# Q3 d*2 "9# )2 " $!3?<3 893@ "# ( %U " "9#& = %U " T0 ) 9/m "#+ = ( F* = +) 9/m "#+& %*2 ) ( 6Q 5FQ2.. f )@ 5+G! WU AB 39 ", b$ G %,S S AB 3 C bs "Q3 ( 7! Fd) /m 5+V )$ Am! Q Q3 Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button10.Click Application.Exit() ( 7! ) /m 5+V )$ Q Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click Dim m As String m = " vwx rers]e MJNJOPDE RSEtT ugjngl" & vbcrlf m &= "yerse FG ugjnzde Edi" & vbcrlf m &= "{ Jf }RS ~RK E" & vbcrlf m &= "engauday@hotmail.com" MsgBox(m).. 7! ", 31 C... "9# T0U )-S //E g = 7! "*G Q 7_3 C2 "9# WU 2 5# Q WU /E g ' 9^ "$ V 2! f#! 89 ;+3 = f2 "9# c9^ Q9 b 7! )/ Q9! R/. C2 5_+ #& %$ S )$V C2 cg3 P9#.3d 9 o g )31.9/$ engauday@hotmail.com

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

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

الربط البرمجي لقواعد البيانات

الربط البرمجي لقواعد البيانات سنتعلم في ىذه المحاضرة اآلتي : البرمجة المرئية 2 بلغة VISUAL BASIC.NET 2005 العاشرة المحاضرة الربط البرمجي لقواعد البيانات ربط قاعدة بيانات من نوع أكسس بطريقة برمجية وليس عن طريق المعالج. عرض معلومات قاعدة

More information

โปรแกรมช วยทดสอบหม อแปลงกระแส

โปรแกรมช วยทดสอบหม อแปลงกระแส โปรแกรมช วยทดสอบหม อแปลงกระแส 1.เมน ของโปรแกรม ภาพท 1 หน าเมน ของโปรแกรม Public Class frmmain Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

More information

LAMPIRAN. Universitas Sumatera Utara

LAMPIRAN. Universitas Sumatera Utara LAMPIRAN 1. Modul Imports System.Data Imports System.Data.OleDb Module Module1 Public conn As OleDbConnection Public CMD As OleDbCommand Public DS As New DataSet Public DA As OleDbDataAdapter Public RD

More information

S.2 Computer Literacy Question-Answer Book

S.2 Computer Literacy Question-Answer Book S.2 C.L. Half-yearly Examination (2012-13) 1 12-13 S.2 C.L. Question- Answer Book Hong Kong Taoist Association Tang Hin Memorial Secondary School 2012-2013 Half-yearly Examination S.2 Computer Literacy

More information

ก Microsoft Visual Studio 2008

ก Microsoft Visual Studio 2008 ก 58 ก ก ก ก ก 58 59 ก Microsoft Visual Studio 2008 1. DVD ก MSVS2008 ก MSVS2008 ก ก MSVS2008 ก ก 180 DVD DVD ก MSVS2008 ก ก Install Visual Studio 2008 2. ก ก ก ก ก Next 3. ก ก Options Page ก Custom ก

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

To enter the number in decimals Label 1 To show total. Text:...

To enter the number in decimals Label 1 To show total. Text:... Visual Basic tutorial - currency converter We will use visual studio to create a currency converter where we can convert a UK currency pound to other currencies. This is the interface for the application.

More information

In this tutorial we will create a simple calculator to Add/Subtract/Multiply and Divide two numbers and show a simple message box result.

In this tutorial we will create a simple calculator to Add/Subtract/Multiply and Divide two numbers and show a simple message box result. Simple Calculator In this tutorial we will create a simple calculator to Add/Subtract/Multiply and Divide two numbers and show a simple message box result. Let s get started First create a new Visual Basic

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

Mr.Khaled Anwar ( )

Mr.Khaled Anwar ( ) The Rnd() function generates random numbers. Every time Rnd() is executed, it returns a different random fraction (greater than or equal to 0 and less than 1). If you end execution and run the program

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

WEEK 1. Event: Tick: Occurs when the specified timer interval has elapsed and the timer is enabled.

WEEK 1. Event: Tick: Occurs when the specified timer interval has elapsed and the timer is enabled. WEEK 1 Timer: A Timer is used to raise an event at user-defined intervals. It is optimized for use in Windows Forms applications. Timer is used to control and manage events that are time related. For example:

More information

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Label1.Text = Label1.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Label1.Text = Label1. 練習問題 1-1 Label1 Label1.Text = Label1.Text + 2 練習問題 1-2 Button2 Label1 Label1.Text = Label1.Text+ 2 Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

More information

Objectives. After completing this topic, the students will: Understand of the concept of polymorphism Know on How to implement 2 types of polymorphism

Objectives. After completing this topic, the students will: Understand of the concept of polymorphism Know on How to implement 2 types of polymorphism Polymorphism Objectives After completing this topic, the students will: Understand of the concept of polymorphism Know on How to implement 2 types of polymorphism Definition Polymorphism provides the ability

More information

Form Adapter Example. DRAFT Document ID : Form_Adapter.PDF Author : Michele Harris Version : 1.1 Date :

Form Adapter Example. DRAFT Document ID : Form_Adapter.PDF Author : Michele Harris Version : 1.1 Date : Form Adapter Example DRAFT Document ID : Form_Adapter.PDF Author : Michele Harris Version : 1.1 Date : 2009-06-19 Form_Adapter.doc DRAFT page 1 Table of Contents Creating Form_Adapter.vb... 2 Adding the

More information

LAMPIRAN A-2 : LAPORAN PENJUALAN DOKUMEN KELUARAN

LAMPIRAN A-2 : LAPORAN PENJUALAN DOKUMEN KELUARAN LAMPIRAN A-2 : LAPORAN PENJUALAN DOKUMEN KELUARAN LAMPIRAN A-1 : NOTA DOKUMEN KELUARAN LAMPIRAN B MASUKAN SISTEM BERJALAN LAMPIRAN B-1 : DATA BARANG DOKUMEN MASUKAN LAMPIRAN B-2 : DATA PELANGGAN DOKUMEN

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

Visual Basic: Opdracht Structuur

Visual Basic: Opdracht Structuur Visual Basic: Opdracht Structuur HoofdMenu.vb SubMenu_Kwadraat.vb Form1.vb Form2.vb Submenu_Som.vb Form3.vb Form4.vb SubMenu_Gem.vb Form5.vb Form6.vb Form10.vb SubMenu_Naam.vb Form7.vb Form11.vb Form8.vb

More information

COPYRIGHTED MATERIAL. Taking Web Services for a Test Drive. Chapter 1. What s a Web Service?

COPYRIGHTED MATERIAL. Taking Web Services for a Test Drive. Chapter 1. What s a Web Service? Chapter 1 Taking Web Services for a Test Drive What s a Web Service? Understanding Operations That Are Well Suited for Web Services Retrieving Weather Information Using a Web Service 101 Retrieving Stock

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

超音波モータ制御プログラムの作成 (v1.2.1)

超音波モータ制御プログラムの作成 (v1.2.1) 超音波モータ制御プログラムの作成 (v1.2.1) 2008 年 11 月 28 日 Masaaki MATSUO 構成機器 モータ本体 : フコク ロータリーエンコーダー内蔵型超音波モータ USB-60E モータ制御部 : フコク 位置決制御ドライバ DCONT-3-60 (SD13) コントローラ : Interface 2 軸絶縁パルスモーションコントローラ ( 直線補間エンコーダ入力 5V)

More information

Form Connection. Imports System Imports System.Threading Imports System.IO.Ports Imports System.ComponentModel

Form Connection. Imports System Imports System.Threading Imports System.IO.Ports Imports System.ComponentModel Form Connection Imports System Imports System.Threading Imports System.IO.Ports Imports System.ComponentModel Public Class connection '------------------------------------------------ Dim myport As Array

More information

SPAREPARTSCATALOG: CONNECTORS SPARE CONNECTORS KTM ART.-NR.: 3CM EN

SPAREPARTSCATALOG: CONNECTORS SPARE CONNECTORS KTM ART.-NR.: 3CM EN SPAREPARTSCATALOG: CONNECTORS ART.-NR.: 3CM3208201EN CONTENT SPARE CONNECTORS AA-AN SPARE CONNECTORS AO-BC SPARE CONNECTORS BD-BQ SPARE CONNECTORS BR-CD 3 4 5 6 SPARE CONNECTORS CE-CR SPARE CONNECTORS

More information

VISUAL BASIC II CC111 INTRODUCTION TO COMPUTERS

VISUAL BASIC II CC111 INTRODUCTION TO COMPUTERS VISUAL BASIC II CC111 INTRODUCTION TO COMPUTERS Intended Learning Objectives Able to build a simple Visual Basic Application. 2 The Sub Statement Private Sub ControlName_eventName(ByVal sender As System.Object,

More information

SPARE CONNECTORS KTM 2014

SPARE CONNECTORS KTM 2014 SPAREPARTSCATALOG: // ENGINE ART.-NR.: 3208201EN CONTENT CONNECTORS FOR WIRING HARNESS AA-AN CONNECTORS FOR WIRING HARNESS AO-BC CONNECTORS FOR WIRING HARNESS BD-BQ CONNECTORS FOR WIRING HARNESS BR-CD

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

Member Management System

Member Management System Member Management System 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)

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

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

Learning VB.Net. Tutorial 10 Collections

Learning VB.Net. Tutorial 10 Collections Learning VB.Net Tutorial 10 Collections 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.

More information

Connection Example. Document ID : Connection_Example.PDF Author : Michele Harris Version : 1.1 Date :

Connection Example. Document ID : Connection_Example.PDF Author : Michele Harris Version : 1.1 Date : Connection Example Document ID : Connection_Example.PDF Author : Michele Harris Version : 1.1 Date : 2009-06-19 page 1 Table of Contents Connection Example... 2 Adding the Code... 2 Quick Watch myconnection...

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

VB.NET Programs. ADO.NET (insert, update, view records)

VB.NET Programs. ADO.NET (insert, update, view records) ADO.NET (insert, update, view records) VB.NET Programs Database: Student Table : Studtab (adno, name, age, place) Controls: DataGridView, Insert button, View button, Update button, TextBox1 (for Admission

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

Apéndice E Código de software de ayuda en Visual Basic 2005 Public Class Form1

Apéndice E Código de software de ayuda en Visual Basic 2005 Public Class Form1 Apéndice E Código de software de ayuda en Visual Basic 2005 Public Class Form1 Dim checkcont As Integer = 0, foto = 0 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

More information

Check out the demo video of this application so you know what you will be making in this tutorial.

Check out the demo video of this application so you know what you will be making in this tutorial. Visual Basic - System Information Viewer Welcome to our special tutorial of visual basic. In this tutorial we will use Microsoft visual studio 2010 version. You can download it for free from their website.

More information

LAMPIRAN A: Listing Program

LAMPIRAN A: Listing Program 67 1. Form Menu Utama LAMPIRAN A: Listing Program Public Class MScreen Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.Hide() Form1.Show()

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

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

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

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

フラクタル 1 ( ジュリア集合 ) 解説 : ジュリア集合 ( 自己平方フラクタル ) 入力パラメータの例 ( 小さな数値の変化で模様が大きく変化します. Ar や Ai の数値を少しずつ変化させて描画する. ) プログラムコード. 2010, AGU, M.

フラクタル 1 ( ジュリア集合 ) 解説 : ジュリア集合 ( 自己平方フラクタル ) 入力パラメータの例 ( 小さな数値の変化で模様が大きく変化します. Ar や Ai の数値を少しずつ変化させて描画する. ) プログラムコード. 2010, AGU, M. フラクタル 1 ( ジュリア集合 ) PictureBox 1 TextBox 1 TextBox 2 解説 : ジュリア集合 ( 自己平方フラクタル ) TextBox 3 複素平面 (= PictureBox1 ) 上の点 ( に対して, x, y) 初期値 ( 複素数 ) z x iy を決める. 0 k 1 z k 1 f ( z) z 2 k a 写像 ( 複素関数 ) (a : 複素定数

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

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

Running the Altair SIMH from.net programs

Running the Altair SIMH from.net programs Running the Altair SIMH from.net programs The Altair SIMH simulator can emulate a wide range of computers and one of its very useful features is that it can emulate a machine running 50 to 100 times faster

More information

Code: Week 13. Write a Program to perform Money Conversion. Public Class Form1

Code: Week 13. Write a Program to perform Money Conversion. Public Class Form1 Write a Program to perform Money Conversion. Week 13 Code: Public Class Form1 Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Dim a As Double a = TextBox1.Text If ComboBox1.SelectedItem

More information

Private Sub MenuUtamaToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Me.ShowDialog() End Sub

Private Sub MenuUtamaToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Me.ShowDialog() End Sub LISTING PROGRAM Menu_Utama.vb Public Class FrmUtama Private Sub DataMovieToolStripMenuItem_Click(ByVal sender As DataMovieToolStripMenuItem.Click FrmMovie.ShowDialog() Private Sub DataPeminjamToolStripMenuItem_Click(ByVal

More information

Computing Science Unit 1

Computing Science Unit 1 Computing Science Unit 1 Software Design and Development Programming Practical Tasks Business Information Technology and Enterprise Contents Input Validation Find Min Find Max Linear Search Count Occurrences

More information

: CREATING WEB BASED APPLICATIONS FOR INSTRUMENT DATA TRANSFER USING VISUAL STUDIO.NET

: CREATING WEB BASED APPLICATIONS FOR INSTRUMENT DATA TRANSFER USING VISUAL STUDIO.NET 2006-938: CREATING WEB BASED APPLICATIONS FOR INSTRUMENT DATA TRANSFER USING VISUAL STUDIO.NET David Hergert, Miami University American Society for Engineering Education, 2006 Page 11.371.1 Creating Web

More information

How to Validate DataGridView Input

How to Validate DataGridView Input How to Validate DataGridView Input This example explains how to use DR.net to set validation criteria for a DataGridView control on a Visual Studio.NET form. Why You Should Use This To add extensible and

More information

Programming with Visual Studio Higher (v. 2013)

Programming with Visual Studio Higher (v. 2013) Programming with Visual Studio Higher (v. 2013) Contents/Requirements Checklist Multiple selection: using ifs & case While Loops Using arrays Filling arrays Displaying array contents Types of variables:

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

Learning VB.Net. Tutorial 15 Structures

Learning VB.Net. Tutorial 15 Structures Learning VB.Net Tutorial 15 Structures 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.

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

Unit 4. Lesson 4.1. Managing Data. Data types. Introduction. Data type. Visual Basic 2008 Data types

Unit 4. Lesson 4.1. Managing Data. Data types. Introduction. Data type. Visual Basic 2008 Data types Managing Data Unit 4 Managing Data Introduction Lesson 4.1 Data types We come across many types of information and data in our daily life. For example, we need to handle data such as name, address, money,

More information

VISUAL BASIC PROGRAMMING (44) Technical Task KEY. Regional 2013 TOTAL POINTS (485)

VISUAL BASIC PROGRAMMING (44) Technical Task KEY. Regional 2013 TOTAL POINTS (485) 5 Pages VISUAL BASIC PROGRAMMING (44) Technical Task KEY Regional 2013 TOTAL POINTS (485) Graders: Please double-check and verify all scores! Property of Business Professionals of America. May be reproduced

More information

BSc (Hons) Computer Science with. Network Security. BSc (Hons) Business Information Systems. Examinations for 2018 / Semester 1

BSc (Hons) Computer Science with. Network Security. BSc (Hons) Business Information Systems. Examinations for 2018 / Semester 1 BSc (Hons) Computer Science with Network Security BSc (Hons) Business Information Systems Cohort: BCNS/17A/FT Examinations for 2018 / Semester 1 Resit Examinations for BIS/16B/FT, BCNS/15A/FT, BCNS/15B/FT,

More information

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

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

Disclaimer. Trademarks. Liability

Disclaimer. Trademarks. Liability Disclaimer II Visual Basic 2010 Made Easy- A complete tutorial for beginners is an independent publication and is not affiliated with, nor has it been authorized, sponsored, or otherwise approved by Microsoft

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

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

MATFOR In Visual Basic

MATFOR In Visual Basic Quick Start t t MATFOR In Visual Basic ANCAD INCORPORATED TEL: +886(2) 8923-5411 FAX: +886(2) 2928-9364 support@ancad.com www.ancad.com 2 MATFOR QUICK START Information in this instruction manual is subject

More information

C:\EDIdEv\Examples\HIPAA\5010\VbNet\vbNet_Gen834X220A1\Form1.vb Imports Edidev.FrameworkEDI

C:\EDIdEv\Examples\HIPAA\5010\VbNet\vbNet_Gen834X220A1\Form1.vb Imports Edidev.FrameworkEDI Imports Edidev.FrameworkEDI 1 Public Class Form1 Private Sub btngenerate_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btngenerate.click Dim oedidoc As edidocument Dim oschemas

More information

Year 12 : Visual Basic Tutorial.

Year 12 : Visual Basic Tutorial. Year 12 : Visual Basic Tutorial. STUDY THIS Input and Output (Text Boxes) The three stages of a computer process Input Processing Output Data is usually input using TextBoxes. [1] Create a new Windows

More information

How to use data sources with databases (part 1)

How to use data sources with databases (part 1) Chapter 14 How to use data sources with databases (part 1) 423 14 How to use data sources with databases (part 1) Visual Studio 2005 makes it easier than ever to generate Windows forms that work with data

More information

PROGRAMMING ASSIGNMENT: MOVIE QUIZ

PROGRAMMING ASSIGNMENT: MOVIE QUIZ PROGRAMMING ASSIGNMENT: MOVIE QUIZ For this assignment you will be responsible for creating a Movie Quiz application that tests the user s of movies. Your program will require two arrays: one that stores

More information

Private Sub Cours_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Private Sub Cours_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Public Class Cours Private nc As Integer Private Sub Cours_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'TODO : cette ligne de code charge les données dans la table

More information

Create a Windows Application that Reads- Writes PI Data via PI OLEDB. Page 1

Create a Windows Application that Reads- Writes PI Data via PI OLEDB. Page 1 Create a Windows Application that Reads- Writes PI Data via PI OLEDB Page 1 1.1 Create a Windows Application that Reads-Writes PI Data via PI OLEDB 1.1.1 Description The goal of this lab is to learn how

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

Herefordshire College of Technology Centre Edexcel BTEC Level 3 Extended Diploma in Information Technology (Assignment 1 of 3)

Herefordshire College of Technology Centre Edexcel BTEC Level 3 Extended Diploma in Information Technology (Assignment 1 of 3) Student: Candidate Number: Assessor: Len Shand Herefordshire College of Technology Centre 24150 Edexcel BTEC Level 3 Extended Diploma in Information Technology (Assignment 1 of 3) Course: Unit: Title:

More information

CALIFORNIA STATE UNIVERSITY, SACRAMENTO College of Business Administration. MIS 15 Introduction to Business Programming. Programming Assignment 3 (P3)

CALIFORNIA STATE UNIVERSITY, SACRAMENTO College of Business Administration. MIS 15 Introduction to Business Programming. Programming Assignment 3 (P3) CALIFORNIA STATE UNIVERSITY, SACRAMENTO College of Business Administration MIS 15 Introduction to Business Programming Programming Assignment 3 (P3) Points: 50 Due Date: Tuesday, May 10 The purpose of

More information

Oracle Rdb Developer Tools for Visual Studio Developer's Guide Release June 2015

Oracle Rdb Developer Tools for Visual Studio Developer's Guide Release June 2015 Oracle Rdb Developer Tools for Visual Studio Developer's Guide Release 7.3.4.0 June 2015 Oracle Rdb Data Provider for.net Developer's Guide, Release 7.3.4.0 Copyright 2011, 2015 Oracle and/or its affiliates.

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

1953LCV1. Laser Chip. KeyFeatures. Applications. For moreinfo. Laser Chip on Submount 1064 CHP

1953LCV1. Laser Chip. KeyFeatures. Applications. For moreinfo. Laser Chip on Submount 1064 CHP Chip 1064 CHP KeyFeatures Distributed Feed Back (DFB) Laser InGaAsP Strained Quantum Well Laser Structure on InP Buried Ridge Stripe (BRS) Low Beam Divergence (FWHM) of 25 x 25 Output Power: 20mW, 40mW

More information

ภาคผนวก ก. Source Code

ภาคผนวก ก. Source Code ภาคผนวก ภาคผนวก ก. Source Code 154 155 Source Code ช อ Empbook Option Explicit On Option Strict On Imports System.data Imports System.Data.OleDb Public Class Empbook Dim Book_status As Integer = 1 'ęğŀşľłŀăăő

More information

System Analysis and Design

System Analysis and Design System Analysis and Design LAB RECORD-INFS -280/L Information Systems Department University of Nizwa, Sultanate of Oman Table of Contents Task. No: Title Page Nos. Date 1) VB Text box and Message Button

More information

I101/B100 Problem Solving with Computers

I101/B100 Problem Solving with Computers I101/B100 Problem Solving with Computers By: Dr. Hossein Hakimzadeh Computer Science and Informatics IU South Bend 1 What is Visual Basic.Net Visual Basic.Net is the latest reincarnation of Basic language.

More information

The New Brew-CQ Synchronous Sockets and Threading

The New Brew-CQ Synchronous Sockets and Threading The New Brew-CQ Synchronous Sockets and Threading Server Topology: The Brew-CQ server is an application written in the new.net compilers from Microsoft. The language of choice is Visual Basic. The purpose

More information

Unit 3. Lesson Designing User Interface-2. TreeView Control. TreeView Contol

Unit 3. Lesson Designing User Interface-2. TreeView Control. TreeView Contol Designing User Interface-2 Unit 3 Designing User Interface-2 Lesson 3.1-3 TreeView Control A TreeView control is designed to present a list in a hierarchical structure. It is similar to a directory listing.

More information

ภาคผนวก ก การต ดต งโปรแกรม

ภาคผนวก ก การต ดต งโปรแกรม ภาคผนวก ภาคผนวก ก การต ดต งโปรแกรม โปรแกรม Visual Basic.Net ข นตอนการต ดต งโปรแกรม Visual Basic.Net (Visual Studio.net 2008) 1. ใส แผ นโปรแกรม Visual Studio.net 2008 ลงใน CD-Rom Drive 2. รอให โปรแกรมท

More information

VARIABLES. 1. STRINGS Data with letters and/or characters 2. INTEGERS Numbers without decimals 3. FLOATING POINT NUMBERS Numbers with decimals

VARIABLES. 1. STRINGS Data with letters and/or characters 2. INTEGERS Numbers without decimals 3. FLOATING POINT NUMBERS Numbers with decimals VARIABLES WHAT IS A VARIABLE? A variable is a storage location in the computer s memory, used for holding information while the program is running. The information that is stored in a variable may change,

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

Visual Studio.NET for AutoCAD Programmers

Visual Studio.NET for AutoCAD Programmers 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

More information

1. We insert elements inside (CompoBox) tool through Items property ( ) 2. ComboBox tool use to choose just one item from the list ( )

1. We insert elements inside (CompoBox) tool through Items property ( ) 2. ComboBox tool use to choose just one item from the list ( ) st Q: Put ( ) or ( ) for the following sentence:. We insert elements inside (CompoBox) tool through Items property ( ) 2. ComboBox tool use to choose just one item from the list ( ) 3. VB.Net allows adding

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

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

Advanced Programming C# Lecture 5. dr inż. Małgorzata Janik

Advanced Programming C# Lecture 5. dr inż. Małgorzata Janik Advanced Programming C# Lecture 5 dr inż. malgorzata.janik@pw.edu.pl Today you will need: Classes #6: Project I 10 min presentation / project Presentation must include: Idea, description & specification

More information

IT3101 -Rapid Application Development Second Year- First Semester. Practical 01. Visual Basic.NET Environment.

IT3101 -Rapid Application Development Second Year- First Semester. Practical 01. Visual Basic.NET Environment. IT3101 -Rapid Application Development Second Year- First Semester Practical 01 Visual Basic.NET Environment. Main Area Menu bar Tool bar Run button Solution Explorer Toolbox Properties Window Q1) Creating

More information

Design Of Human Computer Interfaces Assignment 1- Hello World. Compliance Report

Design Of Human Computer Interfaces Assignment 1- Hello World. Compliance Report Design Of Human Computer Interfaces Assignment 1- Hello World Compliance Report Prepared for: Skip Poehlman Prepared By: K C Course: SE 4D03 Date: September 30, 2008 Contents 1. Code Listing a. Module

More information

C:\EDIdEv\Examples\HIPAA\5010\VbNet\vbNet_Tran834X220A1\Form1.vb Imports Edidev.FrameworkEDI

C:\EDIdEv\Examples\HIPAA\5010\VbNet\vbNet_Tran834X220A1\Form1.vb Imports Edidev.FrameworkEDI Imports Edidev.FrameworkEDI 1 Public Class Form1 Private Sub btntranslate_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btntranslate.click Dim oedidoc As edidocument Dim oschemas

More information

Upgrading Distributed Applications

Upgrading Distributed Applications C2161587x.fm Page 435 Friday, November 16, 2001 9:08 AM Upgrading Distributed Applications Until now we haven t really talked about upgrading large-scale distributed applications. But building these types

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

Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init

Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init Option Strict On Imports System.Drawing.Imaging Imports System.Drawing Imports System Imports System.Collections Imports System.Configuration Imports System.Data Imports System.IO Imports System.Web Imports

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

LifeLink Life Insurance System For ALMAO

LifeLink Life Insurance System For ALMAO LifeLink Life Insurance System For ALMAO R.M.N.P.B. Ratnayake BIT Registration Number: R004702 Index Number: 0047023 Supervisor s Name: Prasanna Weerakoon Submission Month: November Submission Year: 2017

More information

Developing Student Programming and Problem-Solving Skills With Visual Basic

Developing Student Programming and Problem-Solving Skills With Visual Basic t e c h n o l o g y Del Siegle, Ph.D. Developing Student Programming and Problem-Solving Skills With Visual Basic TThree decades have passed since computers were first introduced into American classrooms.

More information