<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>
post_id | 5,788,013 |
---|---|
author | willyfavindy |
permlink | belajar-dasar-pembuatan-aplikasi-vb-net-or-learning-basic-making-vb-net-applications |
category | indonesia |
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"]}" |
created | 2017-07-01 14:59:57 |
last_update | 2017-07-02 01:46:00 |
depth | 0 |
children | 8 |
net_rshares | 14,540,255,563 |
last_payout | 2017-07-08 14:59:57 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.116 SBD |
curator_payout_value | 0.003 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 7,791 |
author_reputation | 1,005,129,969,225 |
root_title | "BELAJAR DASAR PEMBUATAN APLIKASI VB.NET | LEARNING BASIC MAKING VB.NET APPLICATIONS" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
usb | 0 | 3,426,761,675 | 100% | ||
rizaldamti | 0 | 1,970,265,141 | 100% | ||
jodipamungkas | 0 | 1,204,485,871 | 100% | ||
hadimemories | 0 | 666,083,943 | 100% | ||
yandaalpiansyah | 0 | 587,206,416 | 100% | ||
foarsyad | 0 | 667,485,875 | 100% | ||
willyfavindy | 0 | 692,667,323 | 100% | ||
ademadani | 0 | 1,070,077,892 | 100% | ||
naufalikhsan | 0 | 1,023,257,698 | 100% | ||
vandihandika | 0 | 1,084,148,212 | 100% | ||
rahmats | 0 | 244,171,455 | 100% | ||
furqan23 | 0 | 1,027,322,562 | 100% | ||
rezasaputraaaa | 0 | 876,321,500 | 100% |
tiba tiba jadi ingat masa masa di STM :') nice post bg
post_id | 5,795,912 |
---|---|
author | ademadani |
permlink | re-willyfavindy-belajar-dasar-pembuatan-aplikasi-vb-net-or-learning-basic-making-vb-net-applications-20170701t162013504z |
category | indonesia |
json_metadata | "{"app": "steemit/0.1", "tags": ["indonesia"]}" |
created | 2017-07-01 16:20:27 |
last_update | 2017-07-01 16:20:27 |
depth | 1 |
children | 1 |
net_rshares | 0 |
last_payout | 2017-07-08 16:20:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 54 |
author_reputation | 289,141,953,657 |
root_title | "BELAJAR DASAR PEMBUATAN APLIKASI VB.NET | LEARNING BASIC MAKING VB.NET APPLICATIONS" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
Selamat datang di dunia programming...hahahah
post_id | 5,825,377 |
---|---|
author | willyfavindy |
permlink | re-ademadani-re-willyfavindy-belajar-dasar-pembuatan-aplikasi-vb-net-or-learning-basic-making-vb-net-applications-20170701t215645769z |
category | indonesia |
json_metadata | "{"app": "steemit/0.1", "tags": ["indonesia"]}" |
created | 2017-07-01 21:56:57 |
last_update | 2017-07-01 21:56:57 |
depth | 2 |
children | 0 |
net_rshares | 0 |
last_payout | 2017-07-08 21:56:57 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 45 |
author_reputation | 1,005,129,969,225 |
root_title | "BELAJAR DASAR PEMBUATAN APLIKASI VB.NET | LEARNING BASIC MAKING VB.NET APPLICATIONS" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
Postingan yang sangat bagus @willyfavindy Semangat terus untuk menulis dan berkarya :) Salam Komunitas Steemit Indonesia !
post_id | 5,806,333 |
---|---|
author | foarsyad |
permlink | re-willyfavindy-belajar-dasar-pembuatan-aplikasi-vb-net-or-learning-basic-making-vb-net-applications-20170701t181255626z |
category | indonesia |
json_metadata | "{"app": "steemit/0.1", "users": ["willyfavindy"], "tags": ["indonesia"]}" |
created | 2017-07-01 18:12:54 |
last_update | 2017-07-01 18:12:54 |
depth | 1 |
children | 1 |
net_rshares | 0 |
last_payout | 2017-07-08 18:12:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 122 |
author_reputation | 3,593,813,663,804 |
root_title | "BELAJAR DASAR PEMBUATAN APLIKASI VB.NET | LEARNING BASIC MAKING VB.NET APPLICATIONS" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
Thank you
post_id | 5,825,426 |
---|---|
author | willyfavindy |
permlink | re-foarsyad-re-willyfavindy-belajar-dasar-pembuatan-aplikasi-vb-net-or-learning-basic-making-vb-net-applications-20170701t215723814z |
category | indonesia |
json_metadata | "{"app": "steemit/0.1", "tags": ["indonesia"]}" |
created | 2017-07-01 21:57:33 |
last_update | 2017-07-01 21:57:33 |
depth | 2 |
children | 0 |
net_rshares | 0 |
last_payout | 2017-07-08 21:57:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 9 |
author_reputation | 1,005,129,969,225 |
root_title | "BELAJAR DASAR PEMBUATAN APLIKASI VB.NET | LEARNING BASIC MAKING VB.NET APPLICATIONS" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
Mantap @willyfavindy
post_id | 5,853,238 |
---|---|
author | vandihandika |
permlink | re-willyfavindy-belajar-dasar-pembuatan-aplikasi-vb-net-or-learning-basic-making-vb-net-applications-20170702t052856591z |
category | indonesia |
json_metadata | "{"app": "steemit/0.1", "users": ["willyfavindy"], "tags": ["indonesia"]}" |
created | 2017-07-02 05:28:51 |
last_update | 2017-07-02 05:28:51 |
depth | 1 |
children | 1 |
net_rshares | 0 |
last_payout | 2017-07-09 05:28:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 20 |
author_reputation | 806,615,692,176 |
root_title | "BELAJAR DASAR PEMBUATAN APLIKASI VB.NET | LEARNING BASIC MAKING VB.NET APPLICATIONS" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
terima kasih @vandihandika
post_id | 5,858,835 |
---|---|
author | willyfavindy |
permlink | re-vandihandika-re-willyfavindy-belajar-dasar-pembuatan-aplikasi-vb-net-or-learning-basic-making-vb-net-applications-20170702t070138302z |
category | indonesia |
json_metadata | "{"app": "steemit/0.1", "users": ["vandihandika"], "tags": ["indonesia"]}" |
created | 2017-07-02 07:01:51 |
last_update | 2017-07-02 07:01:51 |
depth | 2 |
children | 0 |
net_rshares | 0 |
last_payout | 2017-07-09 07:01:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 26 |
author_reputation | 1,005,129,969,225 |
root_title | "BELAJAR DASAR PEMBUATAN APLIKASI VB.NET | LEARNING BASIC MAKING VB.NET APPLICATIONS" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
Thanks For Sharing @willyfavindy
post_id | 6,081,028 |
---|---|
author | naufalikhsan |
permlink | re-willyfavindy-belajar-dasar-pembuatan-aplikasi-vb-net-or-learning-basic-making-vb-net-applications-20170704t045703230z |
category | indonesia |
json_metadata | "{"app": "steemit/0.1", "users": ["willyfavindy"], "tags": ["indonesia"]}" |
created | 2017-07-04 04:56:57 |
last_update | 2017-07-04 04:56:57 |
depth | 1 |
children | 1 |
net_rshares | 0 |
last_payout | 2017-07-11 04:56:57 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 32 |
author_reputation | 55,236,000,162 |
root_title | "BELAJAR DASAR PEMBUATAN APLIKASI VB.NET | LEARNING BASIC MAKING VB.NET APPLICATIONS" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
your welcome
post_id | 6,082,344 |
---|---|
author | willyfavindy |
permlink | re-naufalikhsan-re-willyfavindy-belajar-dasar-pembuatan-aplikasi-vb-net-or-learning-basic-making-vb-net-applications-20170704t051710175z |
category | indonesia |
json_metadata | "{"app": "steemit/0.1", "tags": ["indonesia"]}" |
created | 2017-07-04 05:17:15 |
last_update | 2017-07-04 05:17:15 |
depth | 2 |
children | 0 |
net_rshares | 0 |
last_payout | 2017-07-11 05:17:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 12 |
author_reputation | 1,005,129,969,225 |
root_title | "BELAJAR DASAR PEMBUATAN APLIKASI VB.NET | LEARNING BASIC MAKING VB.NET APPLICATIONS" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |