Donnerstag, Oktober 14th, 2010 | by Richard Deininger | Posted in Mobility, Windows 7 Phone | 3 Comments »
We did an update for Mexico (Meiern, Mäxchen,…) to run on Windows Phone 7.
Currently we are trying to get this on the WP7 Marketplace and decided to give you a developer preview.

Don’t forget to check out the Video:
So, if you have WP7 SDK and/or Zune, try out the new version.
Mexico
Freitag, Juli 30th, 2010 | by Richard Deininger | Posted in Programmierung Allgemein | No Comments »
Every CF developer knows and uses the “Copy if newer” option from time to time, when deploying on Compact Framework. This way the deployment is a little bit faster. Since I tried to do some C# OpenGL ES stuff on my HTC Touch Diamon as a private project, I came across a real annoying bug. Visual Studio 2008 shows an error during deployment of the:
libGLES_CM.dll (I placed it as a “Content” file inside the project)
The funny thing is the error varies from one deployment to another, top error messages are:
“An operation was attempted on something that is not a socket.”
“Connection has been closed gracefully”
“Connection forcibly closed by remote host”
No search brought a solution to this bug, till after some “testing” (I used my DPD = drinking/programming/drinking method again
).
If you switch from “Copy if newer” to “Copy always” the errors are gone.
Mittwoch, Juni 30th, 2010 | by Richard Deininger | Posted in .NET Framework, C#, Compact Framework, Windows Mobile | 3 Comments »
Since I do some Compact Framework programming on the side. I ran into the problem on how to do full screen applications on WM. Due to our background as “third level developers” we got a pretty good framework for C# Compact Framework programming and there I found the good old HHTaskBar “Hack”.
public static class TaskBar
{
private static IntPtr taskbar;
[DllImport("coredll.dll", EntryPoint = "FindWindowW", SetLastError = true)]
private static extern IntPtr FindWindowCE(string lpClassName, string lpWindowName);
[DllImport("coredll.dll")]
private static extern IntPtr ShowWindow(IntPtr hWnd, int visible);
[DllImport("coredll.dll")]
private static extern bool EnableWindow(IntPtr hwnd, bool enabled);
/// <summary>
/// hides windows taskbar
/// </summary>
public static void HideTaskbar()
{
taskbar = FindWindowCE("HHTaskBar", null);
ShowWindow(taskbar, 0);
EnableWindow(taskbar, false);
}
/// <summary>
/// shows windows taskbar
/// </summary>
public static void ShowTaskbar()
{
ShowWindow(taskbar, 1);
EnableWindow(taskbar, true);
}
}
This is fine,… but if the app crashes or you forget to implement the ”ShowTasbar” function your TaskBar is gone (till the next cold reset). So I searched and found the following “lightweight” way to “hide” the TaskBar.
public static void FullSize(Form frm)
{
frm.WindowState = FormWindowState.Maximized;
frm.Size = Screen.PrimaryScreen.WorkingArea.Size;
frm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
}
Only tested for WM 5.0, 6.0 and 6.5!
Freitag, März 5th, 2010 | by Daniel Siegl | Posted in Windows Mobile | No Comments »
The time of the good old Windows Forms Development for Windowsphones seems over!
One result of this is previous Windows mobile applications will not run on Windows Phone 7 Series.
To be clear, we will continue to work with our partners to deliver new devices based on Windows Mobile 6.5 and will support those products for many years to come, so it’s not as though one line ends as soon as the other begins.
More Detail here:
Charlie Kindel on Windows Phone Development : Different Means Better with the new Windows Phone Developer Experience
It will be interesting what OS Enterprise Mobility Devices will be running in the next 3 to 5 Years – CE or WM 6.5? Since CE 6.0 R3 everything seems to be in place for those use cases!
Mittwoch, Februar 3rd, 2010 | by Daniel Siegl | Posted in Compact Framework | No Comments »
Just learned something new – on one CE 6 Platform I recently had Issues with my GradientFill based controls. – Google didn’t show me any useful hints!
Today when browsing Platform Builder I found the reason:

Gradient Fill Support is an extra Option that needs to be ticked.
Donnerstag, Januar 14th, 2010 | by Alexander Schölzhorn | Posted in Compact Framework, Problemlösungen, Programmierung Allgemein | 2 Comments »
Eine gute bzw. die einzige vernünftige Möglichkeit MissingMethodExceptions und TypeLoadExceptions einer .NET Compact Framework Anwendung zu identifzieren ist das Loader Log. Dieses kann mittels der Registry aktiviert werden: Dazu sind folgende Schritte nötig:
1. CLR Logging aktivieren. Folgenden Wert auf 1 setzen:
HKLM\Software\Microsoft\.NETCompactFramework\Diagnostics\Logging\Enabled
2.Loader Log aktivieren. Folgenden Wert auf 1 setzen:
HKLM\Software\Microsoft\.NETCompactFramework\Diagnostics\Logging\Loader\Enabled
Im Prinzip reicht da schon aus. Das Logfile wird im Verzeichnis der Anwendung erstellt und heißt netcf_loader.log.
Empfehlenswert sind noch folgende zusätzlichen Einstellungen:
3.Anwendungsnamen im Logfile Namen (z.B.: netcf_myApp_loader.log. Nützlich wenn mehrere Anwendungen im gleichen Verzeichnis sind. Folgenden Wert auf 1 setzen:
HKLM\Software\Microsoft\.NETCompactFramework\Diagnostics\Logging\UseApp
4.Prozess Id im Logfile Namen. Folgenden Wert auf 1 setzen:
HKLM\Software\Microsoft\.NETCompactFramework\Diagnostics\Logging\UsePid
5. Log immer sofort schreiben. Nützlich wenn die Anwendung abstürtzt. Achtung, wirkt sich negativ auf die Performance aus. Folgenden Wert auf 1 setzen:
HKLM\Software\Microsoft\.NETCompactFramework\Diagnostics\Logging\Flush
Falls die genannten Registry Einträge noch nicht exisitieren, kann man diese einfach erstellen. Alle Werte sind vom Typ DWORD.
Mehr Informationen gibts im Blog von Steven Pratschner und Dawid Kline.
More Information and an englisch description are posted on the blogs of Steven Pratschner and Dawid Kline.
Freitag, November 27th, 2009 | by Daniel Siegl | Posted in .NET Framework, Compact Framework, Windows Mobile | No Comments »
Today I found a nice article about Finger friendly UI controls for Windows Phone on agilemobility.net.
In this article I learned about a new Framework called Fluid – which gives IPhone style Controls to Windows Mobile Dev.
![Fluid[1] Fluid[1]](http://blog.lieberlieber.com/wp-content/uploads/2009/11/Fluid1_thumb.png)
Also Silvermoon is mentioned – yet this still has the Problem like Tigre that it only works nice on devices with Open GL ES Support.