Some notes on software development... RSS 2.0
# Thursday, 11 September 2008

You cannot arbitrarily change the Target Framework in Smart Device Projects like you can for standard .NET projects.
You need to upgrade the project via the Project->Upgrade Project option like so:

image

image 

The project will then be compiled against the latest version of Compact Framework, here it is 3.5 for my machine.

Note:- you may need to change the available devices/emulators by choosing 'Change Target Platform' from the same menu.

Thursday, 11 September 2008 11:11:38 (GMT Standard Time, UTC+00:00)  #    -
CF | Visual Studio
# Wednesday, 10 September 2008

The chaps over at www.sql-server-helper.com have a great table of all the SQL Server date formats:


image

image

1 To make the month name in upper case, simply use the UPPER string function.

Wednesday, 10 September 2008 08:55:26 (GMT Standard Time, UTC+00:00)  #    -
SQL Server
# Friday, 05 September 2008

www.istartedsomething.com have a cool article describing the unofficial Microsoft-signed dark-styled XP Theme - Royale Noir.
It looks a bit like this:

image 

image

Royale Noir Download

image
Friday, 05 September 2008 16:46:53 (GMT Standard Time, UTC+00:00)  #    -
Misc

If an exception occurs in the BackgroundWorker control's DoWork method it will get wrapped in to the RunWorkerCompletedEventArgs object in the RunWorkerCompleted method.
Checking the Error property of the RunWorkerCompletedEventArgs tells us if an exception occurred on the BackgroundWorker's thread. By re-throwing the exception in the RunWorkerCompleted method it will then be on the calling (GUI) thread where it can be then be dealt with accordingly:

private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { if (e.Error != null) throw e.Error; }
The error check should always be the first statement in the RunWorkerCompleted method.
Friday, 05 September 2008 13:10:33 (GMT Standard Time, UTC+00:00)  #    -
C#
Navigation

Sign In
Extras
Statistics
Total Posts: 116
This Year: 0
This Month: 0
This Week: 0
Comments: 36
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2018
Hadrian Phillips

All Content © 2018, Hadrian Phillips
DasBlog theme 'Business' created by Christoph De Baene (delarou)