Selasa, 06 Oktober 2015

MENGHITUNG LUAS DAN KELILING PERSEGI PANJANG MENGGUNAKAN VB

hay friends ketumu lagi nih!!
kali ini saya  akan membahas tentang bagaimana cara menghitung luas dan keliling persegi panjang

1.buat project dan form baru



 
2.lalu  kita bikin  
3.lalu buat codingnya ,



Private Sub Command1_Click()
Text3.Text = Val(Text1.Text) * Val(Text2.Text)
Text4.Text = Val(Text1.Text) + Val(Text2.Text)

End Sub

Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""


End Sub


Private Sub Command3_Click()
Unload Me
End Sub


Private Sub Form_Activate()
Text5.Text = Time
Text6.Text = Format(Date, "dddd,d yyyy mmmm")
End Sub


ok selesai lalu di RUN .... semoga halaman ini bermanfaat guys....



 


0 komentar:

Posting Komentar

Footer Widget 1

facebook

dewiiihimud@yahoo.co.id

Text

Footer Widget 3

Text 2

You can replace this text by going to "Layout" and then "Page Elements" section. Edit " About "

Main Menu

Blogroll

Dhewi kurniawati SMA N PATIKRAJA
KELAS XI IPS 2

Blogger templates

haaiii .... nama aku Dhewi
TERIMA KASIH SUDAH MENGUNJUNGI BLOG DHEWIKURNIAWATI

Blogger news

Demo image Demo image Demo image Demo image Demo image >

Comments

HD Wallpapers

Recent Post

Link List

BLOGROLL

Footer Widget 2

Ads 468x60px

Followers

Followers

About Me

Featured Posts Coolbthemes