Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
JagoVB JagoVB is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 508
Rep Power: 15
JagoVB mempunyai hidup yang Normal
Default VB 2005 Volume Limas (ask)

Gan ane udah koding VB nih



berikut kodingnya




Code:

Public Class jendelalimas
Dim a As Double
Dim t As Double
Dim tlimas As Double
Dim volum As Double
Private Sub segi3_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles segi3.CheckedChanged
If segi3.Checked Then
volum = ((a * t) / 2 * tlimas / 3)
End If
End Sub
Private Sub segi4_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles segi4.CheckedChanged
If segi4.Checked Then
volum = ((a * t) * tlimas / 3)
End If
End Sub

Private Sub hit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles hit.Click
a = alas.Text
t = tinggi.Text
tlimas = tinggilimas.Text
vol.Text = volum
End Sub
End Class



Cman pas ane klik tombol hitung hasilnya 0 yah



pas di klik yg kedua kali baru hasilnya nongol



biar jelas liat SS




Spoiler for SS:






Klikan Pertama





Klikan Ke 2















salah dimana yah???



ama 1 pertanyaa lagi


Code:

Koding buat nutup jendela(bukan applikasi,bukan me.close) apa yah lupa saya

maaf klo saya banyak tanya

</div>
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Terkait
Thread Thread Starter Forum Replies Last Post
JUAL Omah Bunder / Rumah Bundar / Rumah Limas / Omah Limas Alfamart Art Design 0 14th March 2012 12:06 PM

 


All times are GMT +7. The time now is 02:55 PM.