Click here to Skip to main content
16,021,004 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

I'm looking to code for bluetooth.
I want to write code which allows a button (a radio button) to enable and disable the bluetooth function on a computer.

Can anyone help.

I am writing in Windows Forms Control Library, C++.

Many Thanks.
Posted

Try to look for ideas/codes in http://inthehand.com... you can download an opensource library for bluetooth development. I once tried it for a windows app. You just need to manipulate the Discovery value to one of the 3 values. I actually forgot, I'll get back if I can.
 
Share this answer
 
One good article including bluetooth: Radio Power[^]
 
Share this answer
 
Comments
Hooolagon 3-Sep-11 8:05am    
It is a good article however it expresses Bluetooth Radio Use on a windows mobile platform, where as I am looking for a Windows 7 platform.
Thanks for your time.
Wendelius 3-Sep-11 8:47am    
Ok, sorry about the confusion. In my experience, controlling bluetooth in windows is often done using a third party library (of course this doesn't mean that you cannot do it otherwise). But if you're interested, I think this company has a library which could be worth looking at: http://www.btframework.com/download_net.htm[^]
Hooolagon 3-Sep-11 9:16am    
The link looks good, I will tell you how I progress shortly.
Hooolagon 3-Sep-11 10:29am    
Hello, The link posed a dead end. However I am sure it is possible, I just do not know how to implement it into windows forms control library.
In addition I really am looking for a breakdown tutorial of how to just simply turn the Bluetooth On and Off. Not neccasserily connect it to anything. Just a simple software switch. Thanks
this_is_my_alias 3-Sep-11 10:47am    
You can code bluetooth controls/manipulations, but it would be tedious. Try using 3rd party libraries like InTheHand dlls.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900