-
-
Back to some real content here!
Maybe you already know about this, but as I still often see static method like GetColorFromHTML() in companies static class, it could be a good reminder.
The idea is when you want to set a color in code, like GridView1.ForeColor = "#FFCC66", but this do not work because the property is of type System.Drawing.Color.
You don't need to create a convert method as there is already such a method in the Framework, but the location is not obvious.
First I would have checked for System.Drawing.Color.FromHTML() as there is already a System.Drawing.Color.FromArgb(), but no, it is not there. Instead you have to look in System.Drawing.ColorTranslator.
Convert a RGB color to System.Drawing.Color:
C#:
System.Drawing.Color col = System.Drawing.ColorTranslator.FromHtml("#FFCC66");
VB:
Dim col As System.Drawing.Color = System.Drawing.ColorTranslator.FromHtml("#FFCC66")
Convert a System.Drawing.Color to RGB string:
C#:
String sHtmlColor = System.Drawing.ColorTranslator.ToHtml(col);
VB:
Dim sHtmlColor As String = System.Drawing.ColorTranslator.ToHtml(col)

-
-
As you may know I am a partner of RunAtServer Consulting, a company based in Montreal and highly specialized in Microsoft web technologies such as ASP.NET and AJAX, as well as Silverlight and Expression. We are deeply involved in local .NET communities and love to share knowledge in conferences and trainings.
Are you a passionate ASP.NET developer ? please come check our careers page and the opportunity to join our vibrant team!

-
-
Here are the slides and demos of both of my french sessions: "Expression softwares" and "Silverlight".
Expression session was live only demos, but you'll find the samples I used for Silverlight :
- Expression Encoder output
- ASP.NET Future <asp:Media> Control
- Web Service
- OpenFileDialog
- Isolated Storage
Note that you need VS2008 beta 2 and Microsoft Silverlight Alpha Tools for Visual Studio 2008 Beta
Download the file
Thanks to all attendees!

-
-
Come to my session at Code Camp Montréal this Saturday and get a chance to win one of these 3 boxes !!!
(thanks to Paul Laberge at Microsoft!)

"Introduction à la suite de produits Expression"
Marriott Château Champlain à Montréal - Salle Viger A - 10:30am, it is free!!
See you there!

-
-
Here is a link to some Expression Design tutorials on the Microsoft Expression Team blog :
http://blogs.msdn.com/expression/pages/samples-and-tutorials-gallery-expression-design.aspx

-
-
The second Code Camp Montreal is very soon!!!
--> www.codecampmontreal.com
What you need to know :
- it is Saturday October 27th in Montreal
- it is free!
- it will be great!!
A whole day with 17 sessions in 4 rooms.
You can have a look at the sessions list and the speakers list.
Note that registration is free but mandatory, be quick!
I will present 2 sessions (in french):
- Introduction à la suite de produits Expression
- Introduction à Silverlight
See you there !

-
-
The Real Development Reloaded Tour will be in Montreal on October 18.
I had the chance to review the content of this event, lots of good tips and tricks will be shown, and I am sure you will learn something new, even if like me you do ASP.NET since you are born (almost!).
This tour focus on today's technologies, the ones you use on your day to day job as a web developer. So don't miss this chance to consolidate your knowledge, feel more confident on ASP.NET, AJAX, and learn about the best tools for your browser!
realDEVELOPMENT_07 tour is coming to a Canadian city near you. This half-day event is your chance to get a closer look at the technologies you use to create real web applications.
In the sessions, you’ll learn how to use:
- Visual Studio® development system to debug and trace your web application
- Third party tools and utilities such as the Internet Explorer® internet browser Readiness Toolkit, Developer Toolbar, and Fiddler
- the Enterprise Library to implement best practices
- ASP.NET AJAX to create more immersive and interactive experiences
Link for Montreal registration:
MONTREAL - OCT 18, 2007 (8:30 AM - 12 NOON)
For other dates and cities, read this post.

-
-
A new Live Service is available since September: Live Translator.
http://translator.live.com
The first thing I noticed is the translation is far from perfect (Okay it is beta...).
I like the web page translator : you can change the layout (side by side, top/bottom, hover), when you select some text, it highlights the translated part, and as you browse the pages are automatically translated.
Did a test on my blog, that is so funny!
- Recent posts -> Poteaux récents
- I'm NOT a poor lonesome ASP.NET Developer -> Je ne suis pas des pauvres seuls Réalisateur d'ASP.NET !!!??
Note the "Computer-related content" checkbox, again I did a quick test, from English to French, with Computer-related content checked :
Original:
Mashups are created by dragging in and connecting ‘blocks’ which produce an output. Blocks are modules that connect to various web services API’s, and even today there are dozens of different blocks that work with a whole variety of different web services.
Tranlated:
Mashups sont créées en faisant glisser et de la connexion « blocs » qui produisent une sortie. Les blocs sont les modules qui se connectent à plusieurs services Web API de, et encore aujourd'*** il existe des dizaines de différents blocs qui fonctionnent avec une gamme ensemble de services Web différents.
=|> Oh ***!
Conclusion: It does the job, but not very impressive yet, mostly from English to X and it is not even AJAX!!!

-
-
Can't wait for the new Zune 80 ??
Here is a tutorial on how to boost your Zune 30GB with a 80GB hard drive :
http://www.zunescene.com/80gb-zune/

-
-
I recently came back to Popfly and noticed some nice changes :
- Much cleaner user interface
- Blocks organized by category
- Tweaking feature
- Dapper and Facebook integration
If you do not know what Popfly is about, Nik Cubrilovic from TechCrunch wrote a new review :
"With Popfly, you can create applications, mashups, web pages and widgets (gadgets) and it is all tied together in a social network (as part of the Live Spaces platform) where you can connect with other users and publishers of applications. Mashups are created by dragging in and connecting ‘blocks’ which produce an output. Blocks are modules that connect to various web services API’s, and even today there are dozens of different blocks that work with a whole variety of different web services."
Also read: Top 10 reasons "Why I Think Popfly is Cool ?" by John Montgomery (Popfly Program Manager):
http://blogs.msdn.com/johnmont/archive/2007/05/18/why-i-think-popfly-is-cool.aspx
Meet the Popfly team in this Channel 9 webcast :
http://channel9.msdn.com/showpost.aspx?postid=308460
Currently the project status is still private Alpha-test, I have 5 invitations so leave a comment if you want one of them!

-
-
I was not able to setup my Zune device since I bought my new desktop PC.
I downloaded and installed the latest version of the Zune Software, removed and reinstall Zune driver, nothing worked!
Symptoms:
- Connect Zune to the PC with the USB cable
- Zune software launch
- Get the message : "Searching for device..." and then...... nothing happens!
No way to find out why!!
Tonight I found the solution : I plugged my Zune through an external powered USB hub (and not directly on the computer) and now... it works like a charm!
My USB ports are working correctly, but I suspect them to not supply enough power for a Zune...

-
-
New Zunes are coming in November!
3 new versions were added to the family : Zune 80GB hard-drive, Zune 4GB and Zune 8GB flash models, respectively named Zune 80, Zune 4 and Zune 8. First generation Zune is now called Zune 30. New design seems cool and comes with new colors, but no white version available (they can't beat an iPod!)
Both hardware and software changes, I can't wait for these especially:
- Touch Pad
- WiFi sync with your computer !!
- Podcast support (audio and videos) !
They rebuilt the software from the ground up (Great!!) but it is still separate from Windows Media Player (Oooh ***!). Why not an upgrade or a pluggin ???
Note that first generation Zunes will get the upgraded interface and software enhancements! That is so nice!!
Earlier this year I wrote Zune: My feedback, so what's new? Now we get wireless sync and podcast support (cool!), still no clock (not a big deal), but I hope it does resume songs now. I am a real music lover (which is 99% of my Zune usage), so for me the most important additions would be :
- "Add to now playing list" feature like WMP (current "quick list" feature is totally useless for me, I don't want to edit this list, I want to launch an album immediately, then adding new music's while listening, and I don't want this list to be saved, I want to repeat the whole process with new music every day).
- "Recently added" entry added to the songs/genres/artists/albums menu. I have a lot of music, I mean... A LOT. When I sync Zune with my latest albums I would like to easily find them, like in WMP.

-
-
Laurence Moroney has started a nice series of posts on Silverlight : "Zero to Hero" (how to get started with this technology with no prior knowledge assumed).
The series will cover :
- Your First Silverlight Application
- Understanding XAML
- Understanding the Blend series of Products
- Building Silverlight applications using Aptana on the Mac
- Building Silverlight applications using Visual Studio Express on the PC
- Programming Silverlight 1.0 with JavaScript
http://blogs.msdn.com/webnext/archive/tags/ZERO+HERO/default.aspx

-
-
I had this error each time I browse media folders in Vista :
"This problem is caused because of codecs and other COM components installed by various softwares that aren't fully Vista-compatible, like some versions of DivX or Nero."
Thanks to the How-To-Geek here is the solution :
http://www.howtogeek.com/howto/windows-vista/fix-for-com-surrogate-has-stopped-working-error-in-vista/
