i have here the code for recieving text from broadbond to vb.net application this is not complete and have errors can you pls send me a runing programme to my email or complete code doing this tnx
Public Class Form1
Dim inputData As String = ""
Public Event DataReceived As IO.Ports.SerialDataReceivedEventHandler
Private Sub Form1_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
SerialPort1.PortName = "COM1"
SerialPort1.BaudRate = 9600
SerialPort1.Parity = IO.Ports.Parity.None
SerialPort1.DataBits = 8
SerialPort1.StopBits = IO.Ports.StopBits.One
SerialPort1.Handshake = IO.Ports.Handshake.None
SerialPort1.RtsEnable = True
If SerialPort1.IsOpen = True Then
Private Sub SerialPort1_DataReceived(ByVal sender As System.Object, _
ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) _
inputData = SerialPort1.ReadExisting Me.Invoke(New EventHandler(AddressOf DoUpdate))
Public Sub DoUpdate()
TextBox1.Text = TextBox1.Text & inputData
Private Sub Form1_FormClosed(ByVal sender As System.Object, _
ByVal e As System.Windows.Forms.FormClosedEventArgs) _
He wants to receive data from "broadband". I will assume that it is some port. But in any case it is USB I guess. USB can not be COM1. So basically he does not know which port to open. Program is fine. All OP needs to do is find out which port the modem or the device is connected to and replace COM1 with the port number of that.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)