Onteora Software

Ken Tucker's Blog
posts - 145, comments - 623, trackbacks - 0

March 2009 Entries

Getting Windows Mobile Device ID

I got email today asking me how to get the device ID from a pocket pc with vb   Imports System.Text Public Class Form1 <System.Runtime.InteropServices.DllImport("coredll.dll")> _ Private Shared Function GetDeviceUniqueID(ByVal appdata As Byte(), ByVal cbApplictionData As Integer, ByVal dwDeviceIDVersion As Integer, ByVal deviceIDOuput As Byte(), ByRef pcbDeviceIDOutput As Integer) As Integer End Function Private Function GetDeviceId(ByVal appData As String) As Byte() Dim appDataBytes As Byte() = System.Text.Encoding.ASCII.GetBytes(appData) Dim outputSize As Integer = 20 ...

posted @ Thursday, March 26, 2009 3:10 PM | Feedback (56) | Filed Under [ Compact Framework VB ]

Microsoft Patterns & Practices’ Composite Application Guidance for WPF and Silverlight now in VB.NET!

The Patterns and Practices team has released VB versions of the Quick Starts, Hands on Labs, and How to Topics. You can download them here   http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=537da1cd-43e1-4799-88e7-a1da9166fb46

posted @ Wednesday, March 25, 2009 12:35 AM | Feedback (12) |

Silverlight 2.0 Interacting with html

With SilverLight 2.0 you can interact and handle events with the html elements on your page.  Here is a simple example that places a select (drop down control) on a web page which will change the color of a ellipse on a SilverLight app.  So lets start with the html   <body style="height: 100%; margin: 0;"> <form id="form1" runat="server" style="height: 100%;"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <br /> <span>Select a Color </span> <select id="ddColor"> ...

posted @ Tuesday, March 24, 2009 4:28 PM | Feedback (11) |

Making a REST service with VB and WCF

REST which stands for Representational State Transfer is a way of sending data over the Internet without an additional message layer.  Standard web services use soap for there message header.  In this example we will create a service that uses the northwind database to send a  list of the products for a category.   Lets start by create a new VB web application. In that web application add a Ado.Net Entities data model.  In that class add the northwind database's product class.     Now add a service named Service1 to the...

posted @ Tuesday, March 24, 2009 4:25 PM | Feedback (33) | Filed Under [ VB wcf ]

Rendering problems with IE8

Microsoft released IE8 during Mix 2009.  Microsoft spent a lot of time making IE8 comply with the browser standards.  When you upgrade your browser to IE8 if you find the web site does not render right.  Do not worry there is a simple fix for this.    There is a tag you can place in the Head section of your webpage which will force IE8 into IE7 compatibility mode.   <html> <head> <!-- Mimic Internet Explorer 7 --> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <title>My Web Page</title> </head>     For more info on IE8 compatibility read...

posted @ Tuesday, March 24, 2009 3:18 PM | Feedback (22) |

Powered by: