SEND SMS from samsung galaxy win celphone using vb.net -


how send sms cellphone number using vb.net? have searched on internet including youtube seems not find or cant figure out start. cp cant event detected in "phone , modem" in windows...

i have perfect way send sms in visual basic, using at-commands.

at-commands:are instructed through can send , receive sms messages, make calls cell phone, , example send message:

firstly: write code in top:

imports system.io.ports imports system.io 

secondly:

write code in public class of form:

dim serialport new system.io.ports.serialport() dim cr string 

thirdly:

create textbox(textmsgtextbox) write text message, , textbox2(mobilenumbertextbox) enter mobile number, , button(sendbut) send message.

and write code in button click event.

 if serialport.isopen         serialport.close()     end if  serialport.portname = com4     serialport.baudrate = 9600     serialport.parity = parity.none     serialport.stopbits = stopbits.one     serialport.databits = 8     serialport.handshake = handshake.requesttosend     serialport.dtrenable = true     serialport.rtsenable = true     serialport.newline = vbcrlf     dim message string     message = msgrichtextbox.text     serialport.open()     if serialport.isopen()         serialport.write("at" & vbcrlf)         serialport.write("at+cmgf=1" & vbcrlf)         serialport.write("at+cmgs=" & chr(34) & phonenumbox.text & chr(34) & vbcrlf)         serialport.write(message & chr(26))         sentpicture.visible = true         sentlabel.visible = true         senttimer.start()     else         msgbox("port not available")     end if 

i hope answer useful you.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -