<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://community.opennetcf.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tags 'VS2005' and 'VB'</title><link>http://community.opennetcf.com/search/SearchResults.aspx?o=DateDescending&amp;tag=VS2005,VB&amp;orTags=0</link><description>Search results matching tags 'VS2005' and 'VB'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP2 (Build: 20611.960)</generator><item><title>Programmatically toggle flight mode using opennetcf.telephony and VB </title><link>http://community.opennetcf.com/forums/p/12572/69145.aspx#69145</link><pubDate>Sat, 04 Sep 2010 22:10:28 GMT</pubDate><guid isPermaLink="false">8728999e-43f4-4b8d-bbf2-8b1961517928:69145</guid><dc:creator>ranger.sean</dc:creator><description>&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;Hi all,&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;I hope this is&amp;nbsp;the correct&amp;nbsp;forum in which to post...but if not please excuse me.&amp;nbsp; &lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;I am developing a kiosk&amp;nbsp;application in VB using&amp;nbsp;VS2005 for a GPRS enabled PDA running WM6.&amp;nbsp; The application&amp;nbsp;is to be deployed to contractors working remotely recording ecological data in forests and hill country,&amp;nbsp;and it is likely that&amp;nbsp;the devices will be out of cellular coverage for much&amp;nbsp;of the time, therefore it is desirable to have the cellular radio turned off unless data is being emailed back to base by the user (taken care of programmatically elsewhere within the&amp;nbsp;application).&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;The device (a Trimble Juno SC) has a GPRS modem but there is no voice or SMS capability.&amp;nbsp; The default wireless state&amp;nbsp;on this device seems to be&amp;nbsp;flight mode i.e.&amp;nbsp;the&amp;nbsp;modem is powered down.&amp;nbsp; I can manually change this state in the GUI prior to initiating a data connection, however&amp;nbsp;if the device is subsequently powered off then the&amp;nbsp;wireless state reverts to flight mode.&amp;nbsp; Which is problematic as it is not desirable for end users to have access to change settings likes this.&amp;nbsp; What I need is the ability to programmatically&amp;nbsp;toggle flight-mode as required from within the application.&amp;nbsp; &lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;Having done the obligatory Google search I found myself reading about the OpenNETCF&amp;nbsp;TAPI library&amp;nbsp;which seems&amp;nbsp;to offer the functionality that I require,&amp;nbsp;but&amp;nbsp;despite grabbing the .dll and samples&amp;nbsp;from the CodePlex website I am still a bit stumped as to how to make it work in practice.&amp;nbsp; &lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;The flight mode sample provided&amp;nbsp;was coded in VB&amp;nbsp;for a Pocket PC 2003 device but I cannot make it work&amp;nbsp;for&amp;nbsp;the WM6&amp;nbsp;device that I&amp;#39;m developing for.&amp;nbsp; I came across a post from the developer giving a&amp;nbsp;brief example in C#,&amp;nbsp;but unfortunately I only know VB code!.&amp;nbsp; And even then my skills are fairly rudimentary.&amp;nbsp; &lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;I would be very grateful if someone could help me by providing a&amp;nbsp;basic example in VB of how to make this function work on a WM6 device.&amp;nbsp; At its crudest I&amp;#39;m simply looking to toggle&amp;nbsp;flight mode on/off using a button click event.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;If someone could give me that then I should be fine from there.&amp;nbsp; &lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;&amp;nbsp;Any help gratefully received.&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;Cheers,&lt;/span&gt; 
&lt;p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;Sean&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>