Devilzc0de Forum Follow @devilzc0de
  • Home
  • Hacking
  • Networking
  • Programming
  • O.S
  • Server
  • Tweets
  • Search
  • Member List
  • Calendar
Current time: 05-19-2013, 04:17 AM Hello There, Guest! (Login — Register)
Devilzc0de Forum › Information Technology › Programming › Visual Basic v
« Previous 1 ... 4 5 6 7 8 ... 14 Next »

[Tutor] Menjalankan animasi GIF di Form VB

Home General Computer Multimedia Business Lounge

Pages (2): « Previous 1 2
Post Reply 
Tweet
Threaded Mode | Linear Mode
Tutor Menjalankan animasi GIF di Form VB
10-30-2012, 07:36 AM
Post: #11
asong123 Away
./Devilz Officer
Posts: 189
Joined: Jul 2010
Reputation: 1
RE: Menjalankan animasi GIF di Form VB
hasilnya mantabh om mantap

ma'acih cuteboy
Visit this user's website Find all posts by this user
Quote this message in a reply
10-30-2012, 08:53 AM
Post: #12
DC™Rebels Offline
Alayer_Terbaik_di DC
Posts: 869
Joined: Jun 2012
Reputation: 12
RE: Menjalankan animasi GIF di Form VB
mantap om Rudi
Visit this user's website Find all posts by this user
Quote this message in a reply
10-30-2012, 03:16 PM (This post was last modified: 10-30-2012 03:18 PM by RUD1.)
Post: #13
RUD1 Offline
./Devilz Advisor
Posts: 544
Joined: Jan 2012
Reputation: 169
RE: Menjalankan animasi GIF di Form VB
(10-30-2012 12:11 AM)Alldy Newbie Wrote:  Sukses om,,,
kren hasil'a mantapmantap

ane mau nanya nie om untk membuat kalkulator scientific tuh gmna om,,,

ane dah buat tapi kalkulator biasa blum jadi scientific,
penjelasannya gni,, untuk menjumlahkan nilai 2+3*4 jawaban'a 14 tapi program yg ane buat hasil'a 20 om,,
tu logikanya gmna om???
nie scrip'a yang ane buat


Option Explicit
Dim TekanPertama As Boolean
Dim NilaiTerakhir As Long
Dim OperatorTerakhir As Long

Private Sub CmdAC_Click()
Call Form_Load
End Sub

Private Sub CmdAngka_Click(Index As Integer)
Dim strIndex As String
strIndex = CStr(Index)
If (TekanPertama) Then
TxtDisplay.Text = strIndex
TekanPertama = False
Else
If (TxtDisplay.Text = " 0 ") Then
TxtDisplay.Text = strIndex
Else
TxtDisplay.Text = TxtDisplay.Text & strIndex
End If
End If
End Sub

Private Sub CmdC_Click()
TxtDisplay.Text = ""
End Sub

Private Sub CmdOperator_Click(Index As Integer)
TekanPertama = True
If (OperatorTerakhir >= "0") Then
Call CmdSamadg_Click
End If
OperatorTerakhir = Index
NilaiTerakhir = TxtDisplay.Text
End Sub

Private Sub CmdSamadg_Click()
Dim Hasil As Long
' Jika operator terakhir TAMBAH '
If (OperatorTerakhir = 0) Then
Hasil = NilaiTerakhir + TxtDisplay.Text
TxtDisplay.Text = Hasil
End If
' Jika operator terakhir KURANG '
If (OperatorTerakhir = 1) Then
Hasil = NilaiTerakhir - TxtDisplay.Text
TxtDisplay.Text = Hasil
End If
' Jika operator terakhir KALI '
If (OperatorTerakhir = 2) Then
Hasil = NilaiTerakhir * TxtDisplay.Text
TxtDisplay.Text = Hasil
End If
' Jika operator terakhir BAGI '
If (OperatorTerakhir = 3) Then
' Apakah Pembaginya NOL '
If (TxtDisplay.Text = "0") Then
TxtDisplay.Text = "E"
Else
Hasil = NilaiTerakhir / TxtDisplay.Text
TxtDisplay.Text = Hasil
End If
End If
OperatorTerakhir = -1
End Sub

Private Sub Form_Load()
TekanPertama = True
NilaiTerakhir = 0
TxtDisplay.Text = "0"
OperatorTerakhir = -1
End Sub


tolong d bantu om,,pleasepleaseplease

2+3*4 emang jadi beda hasilnya. Visual basic akan menghitung perkalian terlebih dahulu setelah itu menghitung penambahannya, jadi ini sama aja 3*4=12+2=14.
Kalo mau menghitung penambahan terlebih dahulu kemudian menghitung perkaliannya harus kasih tanda kurung kaya gini (2+3)*4, ini sama aja 2+3=5*4=20

Thank u om asong dan om rebel
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (2): « Previous 1 2
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
  [Ask] Cara Menggabungkan Form1 dengan Form lain kenta 15 344 05-14-2013 11:46 AM
Last Post: wildan123456
  [Ask] syntak error in FORM caluse(vb6) husna.ramadan 4 87 03-10-2013 10:14 AM
Last Post: husna.ramadan
  aNimasi Form di VB.Net / vb 2008 TeRRen.Jr 9 2,323 05-25-2012 11:24 AM
Last Post: DC_Julianz
  Menonaktifkan Tombol Close di Form di Visual Basic petimati 5 2,668 05-06-2012 05:23 PM
Last Post: idan
  bagaimana cara mengakses c# pada form VB.net dhanyrianto 0 338 03-22-2012 10:16 AM
Last Post: dhanyrianto
  interface wifi pada form vb.net dhanyrianto 5 733 03-21-2012 10:51 AM
Last Post: dhanyrianto
Rainbow [Tutor] vb 8 membuat form login dengan database ms access qball006_error 10 1,733 12-26-2011 10:25 AM
Last Post: qball006_error
  [Tutor] [VB 6] Membuat Gradient Warna Pada Form mydisha 12 2,882 07-15-2011 07:13 PM
Last Post: fachrils

Users Browsing
1 Guest(s)

  • Contact Us
  • devilzc0de
  • Return to Top
  • Mobile Version
  • RSS Syndication
  • Help
Current time: 05-19-2013, 04:17 AM 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