Rabu, 06 Maret 2013

cara mempublish vb.net online dan offline / CD room ( database SQL server )


Cara MemPublish online dan offline / CD room aplikasi VB.net

1.klik my project  , apabila sudah kita mulai mengatur propertis .

 



2. pilih Signing , klik Button “ Create Test Certificate “



3.Masukan Password sesuka Anda . ( yang mudah di ingat)




4. pilih debug , configuration = active (debug) , Platform = Active X86 , checklist button Start Project
 Ke bawah lihat enable debugger . checklist enable the visual studio hosting process



5. pilih Menu Compile . build output path:  = bin/debug , option explicit = on , option compare = binary , option strict = off , option infer = on

Checklist , generate XML documentation file



Klik tombol advance compile Options ..
Optimization jgn ada yg di ceklist .
generate debug info : full

COMPILATION CONSTANTS :
Checklist define Debug Constat
Cheklist Define Trace Constat
Generate serialzation = Auto
target CPU = X86
Target Framework = .Net Framwork 4



6. Ke Menu Publish , prerequisites klik pilih ceklist yang tengah .  (download prerequisite from the same location as My aplication )



7. masih di menu publish , klik publish wizard .



7,1 .bagi yang aplikasi offline langsung saja publish .

8.untuk publish website ,  pastikan IIS anda telah terpasang . ( klo belum klik control panel , pilih hardware and sound , pilih add device , ceklist tuh IIS nya )

9. bagi yang sudah terpasang IIS pastikan Visual Studio Administrator . ( caranya klik start pilih visual studio , klik kanan plih menu run as administrator , klo udah pilih specify the location to publish this aplication ( di Publish wizard ) = http://localhost/nameyouraplication/
Klik next ceklist yes, click next  ready to publish .  =)

agak rumit tapi mudah koq klo udah biasa . ;)
 Cara MemPublish VB.net
1.klik my project  , apabila sudah kita mulai mengatur propertis .
2. pilih Signing , klik Button “ Create Test Certificate “
3.Masukan Password sesuka Anda . ( yang mudah di ingat)
4. pilih debug , configuration = active (debug) , Platform = Active X86 , checklist button Start Project
 Ke bawah lihat enable debugger . checklist enable the visual studio hosting process
5. pilih Menu Compile . build output path:  = bin/debug , option explicit = on , option compare = binary , option strict = off , option infer = on
Checklist , generate XML documentation file
Klik tombol advance compile Options ..
Optimization jgn ada yg di ceklist .
generate debug info : full
COMPILATION CONSTANTS :
Checklist define Debug Constat
Cheklist Define Trace Constat
Generate serialzation = Auto
target CPU = X86
Target Framework = .Net Framwork 4

6. Ke Menu Publish , prerequisites klik pilih ceklist yang tengah .  (download prerequisite from the same location as My aplication )

7. masih di menu publish , klik publish wizard

8. pastikan IIS anda telah terpasang . ( klo belum klik control panel , pilih hardware and sound , pilih add device , ceklist tuh IIS nya )

9. bagi yang sudah terpasang IIS pastikan Visual Studio Administrator . ( caranya klik start pilih visual studio , klik kanan plih menu run as administrator , klo udah pilih specify the location to publish this aplication ( di Publish wizard ) = http://localhost/nameyouraplication/
Klik next ceklist yes, click next  ready to publish .  =)

agak rumit tapi mudah koq klo udah biasa . ;)

Senin, 04 Maret 2013

Tutorial Belajar Dasar Visual Basic / VB.net

pengenalan VB.net

visual basic adalah media untuk membuat sebuah program dekstop atau website berdasarkan logika dan kemauan anda .

yang harus kita pelajarin apabila pemula adalah fungsi dari masing" toolbar .

1. membuat Messagebox





Public Class Form1

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
        
MessageBox.Show("Visual Basic Menyenangkan", "fariz", MessageBoxButtons.OK , MessageBoxIcon.Information)
        If MsgBoxResult.Ok Then
            Me.Close()
        End If
    End Sub
End Class

2. membuat variable 

suatu tempat yang digunakan untuk menyimpan suatu nilai yang dapat diubah-ubah sesuai data typenya .





Public Class Form1

    Dim msg As String = "variable asik loh :)"

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
       
 MessageBox.Show(msg, "fariz", MessageBoxButtons.OK, MessageBoxIcon.Information)
      
  If MsgBoxResult.Ok Then

            Me.Close()

        End If
    End Sub
End Class


3. Contoh if



Public Class Form1

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
   
   If TextBox1.Text = "hy" Then
            Label1.Text = "WeLcoME =)"

        End If
    End Sub
End Class


4. rumus matematika



1 buah button
2 buah textbox
1 buah label

Public Class Form1

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
       
 Label1.Text = Val(TextBox1.Text) + Val(TextBox2.Text)

    End Sub
End Class

atau

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
       
 Label1.Text = Val(TextBox1.Text) * Val(TextBox2.Text)

    End Sub
End Class

atau

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
       
 Label1.Text = Val(TextBox1.Text) / Val(TextBox2.Text)

    End Sub
End Class


atau

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
       
 Label1.Text = Val(TextBox1.Text) - Val(TextBox2.Text)

    End Sub
End Class


Rumus Menghitung Row Pada Datagridview vb.net

SYNTAX MENGHITUNG ROWS PADA DATAGRIDVIEW


rows adalah jumlah baris dalam gridview .

Private Sub TxtID_Leave(sender As Object, e As System.EventArgs) Handles TxtID.Leave

Dim rowcount As Integer
rowcount = datatable.Rows.Count()
textbox2.text = rowcount

end sub


atau memilih parameter lain contoh klik button atau yg lain untuk di atas untuk leave textbox .

penjelasan sytax .

1 . textbox2 adalah integer atau bilangan bulat ( 1 , 2 , 3 dsb) ( bukan pecahan (1,23))
2. rowcount akan menjumlah datatable dari datagridview
3. textbox2 akan menghasilkan jumlah rownya .

Smoga bermanfaat