This is a discussion on How to write Bluetooth Connection program in c# for Windows mobile 5.0 ? within the Windows Mobile forums, part of the Mobile Software Development category; In Compact framework 1.0, we don't have any managed class which handles bluetooth socket connections. InTheHand is a ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| In Compact framework 1.0, we don't have any managed class which handles bluetooth socket connections. InTheHand is a third party component which gives the functionalities of bluetooth services for windows mobile. You can download the InTheHand from here here URL : Download 32feet.NET 2.0.60828 for Windows Mobile PocketPC - Softpedia Using the code In this article the source code available for download. There have been the devices are displaying in a combobox when click the first button name of Search devices. Then we can connect the selected device from the combobox by clicking the button named Connect. The code is noted in below which is used in the project. //// Directives. using InTheHand.Net; using InTheHand.Net.Bluetooth; using InTheHand.Net.Sockets; ////Declaration// private BluetoothClient bluetoothClient; private Guid service = BluetoothService.DialupNetworking; ////Search the devices and displaying in combobox.// BluetoothRadio.PrimaryRadio.Mode = RadioMode.Discoverable; bluetoothClient = new BluetoothClient(); Cursor.Current = Cursors.WaitCursor; BluetoothDeviceInfo[] bluetoothDeviceInfo = { }; bluetoothDeviceInfo = bluetoothClient.DiscoverDevices(10); comboBox1.DataSource = bluetoothDeviceInfo; comboBox1.DisplayMember = "DeviceName"; comboBox1.ValueMember = "DeviceAddress"; comboBox1.Focus(); Cursor.Current = Cursors.Default; ////Connect the selected device.// bluetoothClient.Connect(new BluetoothEndPoint((BluetoothAddress) _comboBox1.SelectedValue, service)); you can download the sample code from here: URL : The Code Project - Member Logon - Free Source Code and Tutorials |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | |
| |
LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/windows-mobile/1738-how-write-bluetooth-connection-program-c-windows-mobile-5-0-a.html | |||
| Posted By | For | Type | Date |
| How to write Bluetooth Connection program in c# for Windows mobile ... | Web Hosting | This thread | Refback | 01-13-2008 09:36 AM |
| The Code Project - Member Logon - Free Source Code and Tutorials | This thread | Refback | 11-01-2007 06:10 AM |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| can we write a c program for a elctronics product? | saravanan | C and C++ Programming | 4 | 10-23-2008 11:05 AM |
| How do I write a clock program in JavaScript? | itbarota | HTML, CSS and Javascript Coding Techniques | 2 | 10-12-2007 10:55 PM |
| How Can we search Bluetooth Devices using C# for windows mobile? | mobilegeek | Windows Mobile | 2 | 08-17-2007 08:07 AM |
| What is the difference between internet connection and GPRS or mobile net connection? | sathishkumar | Computer Hardware | 2 | 08-11-2007 04:16 AM |
| Windows Mobile 5.0 PocketPC v2.0 emulator Bluetooth peripheral serial port mapping pr | theone | Mobile Software Development | 1 | 07-25-2007 03:04 AM |