Devilzc0de Forum Follow @devilzc0de
  • Home
  • Hacking
  • Networking
  • Programming
  • O.S
  • Server
  • Tweets
  • Search
  • Member List
  • Calendar
Current time: 05-18-2013, 10:46 PM Hello There, Guest! (Login — Register)
Devilzc0de Forum › Information Technology › Programming › Visual Basic v
« Previous 1 ... 7 8 9 10 11 ... 14 Next »

mendeteksi ganjil dan genap + luas segitiga

Home General Computer Multimedia Business Lounge

Post Reply 
Tweet
Threaded Mode | Linear Mode
mendeteksi ganjil dan genap + luas segitiga
04-15-2012, 01:25 PM
Post: #1
genta Online
soutboxer
Posts: 961
Joined: Jan 2012
Reputation: 67
mendeteksi ganjil dan genap + luas segitiga
asalmualikum cuteboy ........salam logodc
ketemu lg ama ane lonceng newbie yg suram mau ijin nyampah mohon bila berkenan ,,,ne bekas jalan2 kemarin d s mbah google
lnsung aja deh

1.mendeteksi ganjil dan genap
ini memakai
[Image: di-GU5I.jpg]
Code:
2 label
1 textbox
1 comand buton

terus tinggal masukan
Code:
Private Sub Command1_Click()
a = Text1.Text
Dim b
b = a / 2
Dim c
c = Int(b)
If b = c Then
Label1.Caption = "odd:false"
Label2.Caption = "Even:true"
Text1.Text = a
Text1.SetFocus
End If
End Sub

2. membuat luas segitiga

[Image: di-MAKU.jpg]
ini memakai
Code:
3 label
3 textbox
2 command buton
pertama2-ganti nama yg berada di propertis menjadi
Code:
text1------menjadi txt_alas
text2-------menjadi txt_tinggi
text3-------menjadi txt_luas
command1 ---------menjadi cmd_proses
command2 ---------menjadi cmd_close


trus tinggal masukan kodingany dah
Code:
Dim alas As Double
Dim tinggi As Double
Dim luas As Double

Private Sub cmd_proses_Click()
alas = Txt_alas.Text
tinggi = Txt_tinggi.Text
luas = 0.5 * alas * tinggi
Txt_luas.Text = luas

End Sub

Private Sub smd_close_Click()
End
End Sub

maaf thread ini sma sekali gak bermutu kali buat para om2 semua ....karna saya hanya bisa mengcopy belum bisa menciptakan mewek .......bila hanya menjadi sampah belaka silahkan d apus pasrah cukup sekian untuk kali ini
wasalamualaikum mohon
Find all posts by this user
Quote this message in a reply
04-15-2012, 01:34 PM
Post: #2
nobodyknowme Offline
./Devilz Officer
Posts: 128
Joined: Mar 2012
Reputation: 10
RE: mendeteksi ganjil dan genap + luas segitiga
widih lumayan nih buat kalo ada tugas tugas di akademik ketawa
Find all posts by this user
Quote this message in a reply
04-16-2012, 09:47 AM
Post: #3
DnA19 Away
Devilz e-Magazine Team (DeMT)
*****
DeMT Team
Posts: 446
Joined: Sep 2011
Reputation: 74
RE: mendeteksi ganjil dan genap + luas segitiga
izin baca2 dulu ya 0mz...
hore
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Topic Tools
Topic Link :
BBCode :
HTML Code :
View a Printable Version Send Thread to a Friend Subscribe to this thread
Submit Google Submit Face book Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Tutor] [vb6]perulangan segitiga layang-layang dari string[dc kompetition] RieqyNS13 3 123 04-04-2013 05:06 PM
Last Post: RUD1
  [Tutor] [VB 6] Mendeteksi Virus Alman mydisha 7 1,169 07-13-2011 11:36 AM
Last Post: crazzy

Users Browsing
1 Guest(s)

  • Contact Us
  • devilzc0de
  • Return to Top
  • Mobile Version
  • RSS Syndication
  • Help
Current time: 05-18-2013, 10:46 PM Powered By MyBB, © 2002-2013 MyBB Group. Theme created by Justin S. | Mixed By Chaer.Newbie | Fixed By Aditya

USING THIS SITE INDICATES THAT YOU HAVE READ AND ACCEPT OUR TERMS. IF YOU DO NOT ACCEPT THESE TERMS, YOU ARE NOT AUTHORIZED TO USE THIS SITE