Information Technologies Cimahi Glossary    Contact Us
Search  
   
Browse by Category
Information Technologies Cimahi .: Short Messaging Service (SMS) .: Contoh Terima SMS dengan VB

Contoh Terima SMS dengan VB

Berikut ini saya akan memberikan contoh. Bagaimana? cara Terima SMS di PC dengan VB. menggunakan komponen bantuan Fbus.

 

'---------------------------------------------------------
'Programmer     : Tatang Sutarman
'Email          : tatangs2k0@yahoo.com, tatangs@cimahi-one.com
'Website        : http://cimahi-one.com
'---------------------------------------------------------
Private m_SmsBox As FBSmsBox

Private Sub Command1_Click()
On Error GoTo error

MFBUS15Control1.Connect "COM3"

If MFBUS15Control1.Connected = True Then
    StatusBar1.Panels(1).Text = "Konek"
    StatusBar1.Panels(2).Text = "Nama Provider = " & MFBUS15Control1.ProviderName
    Command2.Enabled = True
End If
   
error:
StatusBar1.Panels(1).Text = "Koneksi Gagal"
StatusBar1.Panels(2).Text = ""
Command2.Enabled = False

End Sub

Private Sub Command2_Click()
If MFBUS15Control1.Connected = False Then
    MsgBox "HP Tidak Konek!", vbCritical
    Exit Sub
End If

MFBUS15Control1.SMS.Refresh

Set m_SmsBox = MFBUS15Control1.SMS.Inbox
For i = 1 To m_SmsBox.Count
    With m_SmsBox(i)
      sMsg = CStr(.DateTime)
      If .Sender <> "" Then
        sMsg = sMsg & "  from:" & .Sender
      End If
      If .Destination <> "" Then
        sMsg = sMsg & "  to:" & .Destination
      End If
      If Not .SentRead Then
        sMsg = sMsg & " (unread)"
      End If
    End With
    lstMsg.AddItem sMsg
  Next i
  If lstMsg.ListCount > 0 Then
    lstMsg.ListIndex = 0
  Else
    lblMsgText.Caption = ""
  End If
  lstMsg.Visible = True

End Sub

Private Sub lstMsg_Click()
 If lstMsg.ListIndex >= 0 Then
    On Error Resume Next
    lblMsgText.Caption = m_SmsBox(lstMsg.ListIndex + 1).Text
  End If
End Sub

-------------------------------------------------------

Source Code plus komponen. Silahkan Anda Download


Setelah download tolong beri Komentar.

Semoga Bermanfaat.


How helpful was this article to you?

Related Articles

article Contoh Kirim SMS dengan VB

(No rating)  1-16-2009    Views: 1538   
article Kirim dan Terima Email Pakai Outlook Express
Semenjak kehadiran Internet, komunikasi...

(No rating)  2-11-2009    Views: 990   
article Software Aplikasi SMS 2.0 untuk Kirim dan Terima SMS via PC/Laptop

(No rating)  1-21-2010    Views: 2296   

User Comments

Add Comment
Comment Kzh <er_ricks82@yahoo.com>
1-21-2009 at 7:43am

Contoh Terima SMS dengan VB
Ok punya, mantap..kalau masalah nulis Regedit ada ga kang?
Comment Admin <tatangs@cimahi-one.com>
1-27-2009 at 8:22am

Pertanyaan Masalah regedit
Terima kasih atas komentarnya. maaf pertanyaan anda untuk masalah regedit belum saya bahas di site ini, tapi jika anda memerlukan source code untuk masalah regedit ( program untuk melakukan perubahan, penambahan, dan penghapusan key atau value yang ada pada Registry ) anda bisa download di http://planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=51971&lngWId=1



Selamat Mencoba.
Comment yonie <iyon_jenonk@yahoo.com>
7-15-2010 at 12:45pm

at command
help...minta contoh project bikin/mendapatkan informasi HP pake vb6+at command..thanks all



Status YM
Copyright © 2009 cimahi-one.com