de/activation hardware bluetooth funktion

matsche

New Member
Licensed User
Longtime User
hello,
:sign0085:
I need an idea to solve follow function: one button => "click" and the hardware bluetooth is workt on or off.
I use a htc p3300 with wm mobile 6.1.

Have any here a pice of code for me, please!

thanks @ all
 

taximania

Well-Known Member
Licensed User
Longtime User
Use the hardware library.
From the help:

Gets or sets the device's Bluetooth mode.
This method will only work on devices with Microsoft Bluetooth stack.
Syntax: BluetoothMode As Int32


Values:
0 - Off.
1 - On.
2 - On and discoverable.


Example:
Hardware1.BluetoothMode = 1
 
Top