BELAJAR DASAR PEMBUATAN APLIKASI VB.NET | LEARNING BASIC MAKING VB.NET APPLICATIONS by willyfavindy

View this thread on steempeak.com
· @willyfavindy · (edited)
$0.12
BELAJAR DASAR PEMBUATAN APLIKASI VB.NET | LEARNING BASIC MAKING VB.NET APPLICATIONS
<center>https://steemitimages.com/DQmNbvPtnhNMw6BTSBxb72NdxFcAzB6TWK4QqNs4w5kPEjX/prog_vbnet.png</center>

[ENG]
Hi on steemians since my post has now pointed to VB.NET. All my future posts will be themed program about VB.NET. Where later I will provide information about VISUAL BASIC.NET. For the first time I will post how to learn for beginners in making a simple application using MySQL database. I will give you brief and easy-to-understand tutorial details for people who are just learning about VB.NET.

[IND]
Hai pada steemians berhubung posting saya sekarang sudah mengarah ke VB.NET. semua postingan saya kedepannya akan bertemakan program tentang VB.NET. dimana nanti saya akan memberikan informasi seputar VISUAL BASIC.NET. Untuk pertama sekali saya akan memposting bagaimana cara belajar bagi pemula dalam membuat sebuah aplikasi sederhana dengan menggunakan database MySQL. Saya akan memberikan rincian tutorial yang singkat dan mudah dipahami bagi orang yang baru belajar tentang VB.NET.</p>
<hr>
<center>https://steemitimages.com/DQmZTfFWEDp5t9hhQERF6cApyMjAUnRrxyXzxCXNcVor6xG/willy.png</center>
</hr>
<hr>
[ENG]
The first thing you should do is:
* Make a label as many as 4 labels containing (ID GOODS, NAME OF GOODS, STOCK GOODS, GOOD PRICE)
* Create Textbox as many as 4 Textbox for Name "Free as you wish"
* Make Button as many as 7 button and given the name (ADDED, CANCEL, SAVE, REPORT, EDIT, DELETE, EXIT)

[IND]
Hal yang pertama yang harus anda lakukan adalah :
* Buat lah label sebanyak 4 label yang berisikan ( ID BARANG, NAMA BARANG , STOK BARANG, HARGA BARANG )
* Buatlah Textbox sebanyak 4 Textbox untuk Name "Bebas sesuai keinginan"
* Buatlah Button sebanyak 7 button dan diberi nama ( TAMBAH, BATAL, SIMPAN, LAPORAN, EDIT, HAPUS, KELUAR )

QUERY APPLICATION > :
Imports MySql.Data.MySqlClient

Public Class Form1
    Dim con As New MySqlConnection(strkon)
    Dim perintah As New MySqlCommand
    Dim cek As MySqlDataReader
    Dim data As New MySqlDataAdapter
    Dim aktn As Integer
    Dim simpan As Boolean

'----------
'Tombol Simpan

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        If simpan = True Then
            prosesdisplay("insert into barang (IDBarang, NamaBarang, StockBarang, HargaBarang) values('" & TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "','" & TextBox4.Text & "')")
            clearinput()
            tidakaktiftextbox()
        Else
            prosesdisplay("update barang set NamaBarang='" & TextBox2.Text & "',StockBarang='" & TextBox3.Text & "',HargaBarang='" & TextBox4.Text & "' where IDBarang='" & TextBox1.Text & "'")
        End If
        tampil()
        Button2.Enabled = False
        Button3.Enabled = False
        Button4.Enabled = False
        Button5.Enabled = False

    End Sub
'-----------
'Button edit

    Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
        con.Open()
        perintah.Connection = con
        perintah.CommandType = CommandType.Text
        perintah.CommandText = "update barang set NamaBarang='" & TextBox2.Text & "',StockBarang='" & TextBox3.Text & "',HargaBarang='" & TextBox4.Text & "' where IDBarang='" & TextBox1.Text & "'"
        perintah.ExecuteNonQuery()
        con.Close()
        tampil()
        Button2.Enabled = False
        Button3.Enabled = False
        Button4.Enabled = False
        Button5.Enabled = False
    End Sub
'----------
'Button Batal

   Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        tidakaktiftextbox()
        Button2.Enabled = False
        Button3.Enabled = False
        Button4.Enabled = False
        Button5.Enabled = False
        Button1.Focus()
    End Sub
'----------
'Button hapus

   Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
        If MsgBox("Yakin mau dihapus", MsgBoxStyle.OkCancel) = MsgBoxResult.Ok Then
            prosesdisplay("delete ignorer from  barang where IDBarang='" & TextBox1.Text & "'")
        End If
        clearinput()
        MsgBox("Data Sukses Dihapus", MsgBoxStyle.Information)
        tidakaktiftextbox()
        tampil()
        Button2.Enabled = False
        Button3.Enabled = False
        Button4.Enabled = False
        Button5.Enabled = False
    End Sub
'----------
'Menampilkan Datagridview

    Sub tampil()
        con.Open()
        perintah.Connection = con
        perintah.CommandType = CommandType.Text
        perintah.CommandText = "select * from barang"
        Dim mda As New MySqlDataAdapter
        mda.SelectCommand = perintah
        Dim dspem As New DataSet
        mda.Fill(dspem, "IDBarang")
        DataGridView1.DataSource = dspem.Tables("IDBarang")
        con.Close()
    End Sub
'----------
'Database

   " Sub prosesdisplay(ByVal sql As String)
        con.Open()
        perintah.Connection = con
        perintah.CommandType = CommandType.Text
        perintah.CommandText = sql
        perintah.ExecuteNonQuery()
        con.Close()
    End Sub
'----------
'Clear kan textboxt

    Sub clearinput()
        TextBox1.Text = ""
        TextBox2.Text = ""
        TextBox3.Text = ""
        TextBox4.Text = ""
    End Sub
'----------
'Searching Data di DataGridview
 
Private Sub TextBox7_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox7.TextChanged
        displaymhs("select * from barang where IDbarang like '%" & TextBox7.Text & "%' or NamaBarang like '%" & TextBox7.Text & "%'order by IDBarang")
    End Sub
'----------
'Penggunaan tombol enter pada keyboard

    Private Sub TextBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown
        Select Case e.KeyCode
            Case Keys.Enter
                TextBox2.Focus()
        End Select
    End Sub

    Private Sub TextBox2_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox2.KeyDown
        Select Case e.KeyCode
            Case Keys.Enter
                TextBox3.Focus()
        End Select
    End Sub

    Private Sub TextBox3_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox3.KeyDown
        Select Case e.KeyCode
            Case Keys.Enter
                TextBox4.Focus()
        End Select
    End Sub
End Class

[ENG]
Hopefully you can do carefully and be careful not to have any code that you can run correctly remember not to debug ..

[IND]
Semoga Kalian bisa mengerjakan dengan seksama dan hati - hati jangan sampai ada kode yang bisa kalian jalankan dengan benar ingat jangan sampai debug. Terima Kasih Kepada Curator @levycore dan @aiqabrago Serta Para Steemian Indonesia Semoga Artikel ini bisa Bermanfaat....


<center>https://steemitimages.com/DQmSNTE6dosqsNVNhGJpL7rfbmsyGwfp1ibKH5U5FU7HHAA/Willy%20Steemit%20Indonesia.png </center>
</center>

<center>https://steemitimages.com/50x60/http://steemitboard.com/@willyfavindy/commented.png
<td>https://steemitimages.com/60x70/http://steemitboard.com/@willyfavindy/votes.png
<td>https://steemitimages.com/100x80/http://steemitboard.com/@willyfavindy/level.png
<td>https://steemitimages.com/70x80/http://steemitboard.com/@willyfavindy/comments.png
<td>https://steemitimages.com/60x70/http://steemitboard.com/@willyfavindy/voted.png
</center></td>
 
https://steemitimages.com/DQmR3hFVBGSV1SRpUywVFcQaxLVuKoEWwZTfoT8kVKUd8JV/steemit%20indo.png
<center><h1>Keep Steem on Me @willyfavindy</h1></center>

<center><b><h1>dont forget Upvote Me https://steemitimages.com/DQmQdyiUoU8QFHoW3HHr64cTxzCfPJiXMcNNrvAfvAAtkH6/U5dr71A5M33HEviSuz253XjkHciUKd7.gif and follow me</b></h1></center>
👍  , , , , , , , , , , , ,
properties (23)
post_id5,788,013
authorwillyfavindy
permlinkbelajar-dasar-pembuatan-aplikasi-vb-net-or-learning-basic-making-vb-net-applications
categoryindonesia
json_metadata"{"app": "steemit/0.1", "format": "markdown", "users": ["levycore", "aiqabrago", "willyfavindy"], "image": ["https://steemitimages.com/DQmNbvPtnhNMw6BTSBxb72NdxFcAzB6TWK4QqNs4w5kPEjX/prog_vbnet.png"], "tags": ["education", "indonesia", "learning", "programming", "structure"]}"
created2017-07-01 14:59:57
last_update2017-07-02 01:46:00
depth0
children8
net_rshares14,540,255,563
last_payout2017-07-08 14:59:57
cashout_time1969-12-31 23:59:59
total_payout_value0.116 SBD
curator_payout_value0.003 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length7,791
author_reputation1,005,129,969,225
root_title"BELAJAR DASAR PEMBUATAN APLIKASI VB.NET | LEARNING BASIC MAKING VB.NET APPLICATIONS"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (13)
@ademadani ·
tiba tiba jadi ingat masa masa di STM :')
nice post bg
properties (22)
post_id5,795,912
authorademadani
permlinkre-willyfavindy-belajar-dasar-pembuatan-aplikasi-vb-net-or-learning-basic-making-vb-net-applications-20170701t162013504z
categoryindonesia
json_metadata"{"app": "steemit/0.1", "tags": ["indonesia"]}"
created2017-07-01 16:20:27
last_update2017-07-01 16:20:27
depth1
children1
net_rshares0
last_payout2017-07-08 16:20:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length54
author_reputation289,141,953,657
root_title"BELAJAR DASAR PEMBUATAN APLIKASI VB.NET | LEARNING BASIC MAKING VB.NET APPLICATIONS"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@willyfavindy ·
Selamat datang di dunia programming...hahahah
properties (22)
post_id5,825,377
authorwillyfavindy
permlinkre-ademadani-re-willyfavindy-belajar-dasar-pembuatan-aplikasi-vb-net-or-learning-basic-making-vb-net-applications-20170701t215645769z
categoryindonesia
json_metadata"{"app": "steemit/0.1", "tags": ["indonesia"]}"
created2017-07-01 21:56:57
last_update2017-07-01 21:56:57
depth2
children0
net_rshares0
last_payout2017-07-08 21:56:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length45
author_reputation1,005,129,969,225
root_title"BELAJAR DASAR PEMBUATAN APLIKASI VB.NET | LEARNING BASIC MAKING VB.NET APPLICATIONS"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@foarsyad ·
Postingan yang sangat bagus @willyfavindy
Semangat terus untuk menulis dan berkarya :)
Salam Komunitas Steemit Indonesia !
properties (22)
post_id5,806,333
authorfoarsyad
permlinkre-willyfavindy-belajar-dasar-pembuatan-aplikasi-vb-net-or-learning-basic-making-vb-net-applications-20170701t181255626z
categoryindonesia
json_metadata"{"app": "steemit/0.1", "users": ["willyfavindy"], "tags": ["indonesia"]}"
created2017-07-01 18:12:54
last_update2017-07-01 18:12:54
depth1
children1
net_rshares0
last_payout2017-07-08 18:12:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length122
author_reputation3,593,813,663,804
root_title"BELAJAR DASAR PEMBUATAN APLIKASI VB.NET | LEARNING BASIC MAKING VB.NET APPLICATIONS"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@willyfavindy ·
Thank you
properties (22)
post_id5,825,426
authorwillyfavindy
permlinkre-foarsyad-re-willyfavindy-belajar-dasar-pembuatan-aplikasi-vb-net-or-learning-basic-making-vb-net-applications-20170701t215723814z
categoryindonesia
json_metadata"{"app": "steemit/0.1", "tags": ["indonesia"]}"
created2017-07-01 21:57:33
last_update2017-07-01 21:57:33
depth2
children0
net_rshares0
last_payout2017-07-08 21:57:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length9
author_reputation1,005,129,969,225
root_title"BELAJAR DASAR PEMBUATAN APLIKASI VB.NET | LEARNING BASIC MAKING VB.NET APPLICATIONS"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@vandihandika ·
Mantap @willyfavindy
properties (22)
post_id5,853,238
authorvandihandika
permlinkre-willyfavindy-belajar-dasar-pembuatan-aplikasi-vb-net-or-learning-basic-making-vb-net-applications-20170702t052856591z
categoryindonesia
json_metadata"{"app": "steemit/0.1", "users": ["willyfavindy"], "tags": ["indonesia"]}"
created2017-07-02 05:28:51
last_update2017-07-02 05:28:51
depth1
children1
net_rshares0
last_payout2017-07-09 05:28:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length20
author_reputation806,615,692,176
root_title"BELAJAR DASAR PEMBUATAN APLIKASI VB.NET | LEARNING BASIC MAKING VB.NET APPLICATIONS"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@willyfavindy ·
terima kasih @vandihandika
properties (22)
post_id5,858,835
authorwillyfavindy
permlinkre-vandihandika-re-willyfavindy-belajar-dasar-pembuatan-aplikasi-vb-net-or-learning-basic-making-vb-net-applications-20170702t070138302z
categoryindonesia
json_metadata"{"app": "steemit/0.1", "users": ["vandihandika"], "tags": ["indonesia"]}"
created2017-07-02 07:01:51
last_update2017-07-02 07:01:51
depth2
children0
net_rshares0
last_payout2017-07-09 07:01:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length26
author_reputation1,005,129,969,225
root_title"BELAJAR DASAR PEMBUATAN APLIKASI VB.NET | LEARNING BASIC MAKING VB.NET APPLICATIONS"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@naufalikhsan ·
Thanks For Sharing @willyfavindy
properties (22)
post_id6,081,028
authornaufalikhsan
permlinkre-willyfavindy-belajar-dasar-pembuatan-aplikasi-vb-net-or-learning-basic-making-vb-net-applications-20170704t045703230z
categoryindonesia
json_metadata"{"app": "steemit/0.1", "users": ["willyfavindy"], "tags": ["indonesia"]}"
created2017-07-04 04:56:57
last_update2017-07-04 04:56:57
depth1
children1
net_rshares0
last_payout2017-07-11 04:56:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length32
author_reputation55,236,000,162
root_title"BELAJAR DASAR PEMBUATAN APLIKASI VB.NET | LEARNING BASIC MAKING VB.NET APPLICATIONS"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@willyfavindy ·
your welcome
properties (22)
post_id6,082,344
authorwillyfavindy
permlinkre-naufalikhsan-re-willyfavindy-belajar-dasar-pembuatan-aplikasi-vb-net-or-learning-basic-making-vb-net-applications-20170704t051710175z
categoryindonesia
json_metadata"{"app": "steemit/0.1", "tags": ["indonesia"]}"
created2017-07-04 05:17:15
last_update2017-07-04 05:17:15
depth2
children0
net_rshares0
last_payout2017-07-11 05:17:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length12
author_reputation1,005,129,969,225
root_title"BELAJAR DASAR PEMBUATAN APLIKASI VB.NET | LEARNING BASIC MAKING VB.NET APPLICATIONS"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000