Hi, im new trying with bluetooth. Im trying to use Inthehand in vb .net 2005 with a htc. I want to connect to another device, but i got an error: Null reference y the line with ****** next, here is my code, thanks for the atention.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim BlueC As New BluetoothClient
Dim BlueI As BluetoothDeviceInfo() = BlueC.DiscoverDevices(6)
cmbname.DataSource = BlueI
cmbname.DisplayMember = "DeviceName"
cmbaddress.DataSource = BlueI
cmbaddress.DisplayMember = "DeviceAddress"
End Sub
Private Sub bconectar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bconectar.Click
Dim address As New BluetoothAddress(Long.Parse(cmbaddress.Text, Globalization.NumberStyles.HexNumber))
Dim ep As New BluetoothEndPoint(address, BluetoothService.SerialPort)
bc.Connect(ep) **************************************************
End Sub
Help me, please!