Sunday, June 29, 2008

Build Occasionally Connected Systems Using Sync Services for ADO.NET v1.0

When workers aren't always connected, Occasionally Connected Systems (OCS) can help. Find out how Visual Studio 8's Sync Services for ADO.NET enables OCS, synchronizing databases between different devices and computers.

Persisting Data in Your Windows Mobile Device

Learn about the three methods of persisting data and which is the right one for your device.

Thursday, June 19, 2008

Build Occasionally Connected Systems Using Sync Services for ADO.NET v1.0

When workers aren't always connected, Occasionally Connected Systems (OCS) can help. Find out how Visual Studio 8's Sync Services for ADO.NET enables OCS, synchronizing databases between different devices and computers.

Wednesday, June 18, 2008

New Courses - Windows Mobile & AJAX

Foundation of Windows Mobile Programming (25th July 2008) - S$399
This course will introduce to participants the various techniques to program their Windows Mobile 6 devices. This feature-packed course will show you how to get started in Windows Mobile development, right from the start till deployment.

* Introduction to the Windows Mobile platform
* Introduction to Windows Mobile 6
- Windows Mobile 6 Classic, Standard, and Professional
* UI Design and guidelines
- Orientation aware and screen-resolution aware
* File I/O
* Integrating with built-in applications
- Outlook Mobile
- Calendar
- Tasks
* Web services
- Developing web services
- Consuming web services
- Transferring binary data using web services
* Database Access
- Database access using SQL Server Compact Edition
- Database synchronization using Remote Data Access (RDA)
* Deploying Windows Mobile applications o Creating CAB files

Programming ASP.NET 3.5 AJAX (28th July) - S$399
This course is targeted at Web developers who need to get jumpstarted to ASP.NET 3.5 AJAX
development in the shortest amount of time. It will introduce to participants the various
techniques to AJAX-enable their Web applications using the latest ASP.NET 3.5 AJAX framework.

* Architecture of the ASP.NET AJAX Framework
* How to update part of a Web page without a page reload
* How to auto-complete user inputs
* How to update a panel at regular intervals
* How to create a panel that’s always floating and visible
* How to populate a DropDownList control without a page refresh
* How to display a confirmation dialog on a page
* How to call Web/WCF services directly from a web page
* How to access the properties of a Profile property from a Web page
* How to add drag and drop functionality to a control
* How to give users control of the information shown by a panel

Details and application forms to be published shortly!

Monday, June 16, 2008

.NET Tip - Get the filename, not the path

One of the problems with using the OpenFileDialog class is that the FileName property always returns the full path name of the file:

OpenFileDialog openFileDialog1 = new OpenFileDialog()
{
Filter = "Text files (*.jpg)*.jpg"
};

Console.WriteLine(openFileDialog1.FileName); //---e.g. C:\Windows\text.txt---

To retrieve only the filename and not the path, feed it to the FileInfo class, like this:

FileInfo fi = new FileInfo(openFileDialog1.FileName);
Console.WriteLine(fi.Name); //---text.txt---
Console.WriteLine(fi.Directory); //---C:\Windows---

Cool, isn't it?

Wednesday, June 04, 2008

Windows SideShow for Windows Mobile Developer Preview

Microsoft has just released the Windows SideShow for Windows Mobile Developer Preview, an application for Windows Mobile 5.0 and 6 devices that converts your Windows Mobile device into a SideShow device. Go check it out and this is a good time to check out my book as well. I am proud to say that it also been translated into Spanish and Russian! ;-)