Vb

Fermé
fathiaboujnah Messages postés 2 Date d'inscription mardi 9 avril 2013 Statut Membre Dernière intervention 10 avril 2013 - 9 avril 2013 à 20:37
fathiaboujnah Messages postés 2 Date d'inscription mardi 9 avril 2013 Statut Membre Dernière intervention 10 avril 2013 - 10 avril 2013 à 13:18
Bonjour,
svp pouvez vous m'aidez pour trouver l'interface graphique pour ce code vb6
//
// if COM3 is shown in device manager then put COM4 in foll statement
//
Dim SMSEngine As New SMSCOMMS("COM4")

'the port needs to be initialised

SMSPort = New SerialPort
With SMSPort
.PortName = COMMPORT
.BaudRate = 19200
.Parity = Parity.None
.DataBits = 8
.StopBits = StopBits.One
.Handshake = Handshake.RequestToSend
.DtrEnable = True
.RtsEnable = True
.NewLine = vbCrLf
End With


'this is the set of AT commands to be written on serial port

SMSPort.WriteLine("AT")
'set command message format to text mode(1)
SMSPort.WriteLine("AT+CMGF=1" & vbCrLf)
'set service center address (which varies for service providers (idea, airtel))
SMSPort.WriteLine("AT+CSCA=""+21620657688""" & vbCrLf)
' enter the mobile number whom you want to send the SMS
SMSPort.WriteLine("AT+CMGS= + TextBox1.text + " & vbCrLf)
_ContSMS = False
SMSPort.WriteLine("+ TextBox1.text +" & vbCrLf & Chr(26)) 'SMS sending

Dim i As Integer
Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click

SMSEngine.Open() 'open the port
SMSEngine.SendSMS() 'send the SMS

End Sub
A voir également:
  • Vb
  • Vb cable - Télécharger - Audio & Musique
  • Vb - Télécharger - Langages
  • Vb editor - Télécharger - Langages
  • Vb runtime - Télécharger - Divers Utilitaires
  • Vb 2008 - Télécharger - Langages

2 réponses

lermite222 Messages postés 8702 Date d'inscription dimanche 8 avril 2007 Statut Contributeur Dernière intervention 22 janvier 2020 1 190
10 avril 2013 à 07:24
Bonjour,
Déjà que...
Private Sub Button1_Click(ByVal sender As System.Object, 
ByVal e As System.EventArgs) Handles Button1.Click

C'est pas du VB6 mais du VB.Net, probablement VB2010
Et tu veux un graphique de quoi ?
A+
0
fathiaboujnah Messages postés 2 Date d'inscription mardi 9 avril 2013 Statut Membre Dernière intervention 10 avril 2013
10 avril 2013 à 13:18
oui mais je cherche une interface graphique pour exécuter ce programme
0