I want to develop a c# windows application to access bluetooth device. I am using D-Link bluetooth. it's connected in my system. The application should send files to other bluetooth device and receive files from the other bluetooth.

can anyone help me to develop this application?

Thanks in advance.

For example i am using the following codes.

using System.IO.Ports;

private void SendButton_Click(object sender, EventArgs e)

{

string[] ports = SerialPort.GetPortNames();

SerialPort serialPort = null;

try

{

serialPort = new SerialPort();

serialPort = new SerialPort("COM1", 9600, Parity.None, 8, StopBits.One);

serialPort.Open();

serialPort.WriteLine(textBox1.Text);

serialPort.Close();

}

catch (Exception ex)

{

MessageBox.Show(ex.Message);

if (serialPort.IsOpen)

{

serialPort.Close();

}

}

}

Thanks,