F9 Group Marketing and Technology Blog

Marketing, Technology, and current news at http://www.f9group.com/

Entries Tagged ‘csharp’

Follow C# 411 on Twitter

Tired of RSS feeds?  Now you can follow C# 411 on Twitter! Cool Twitter logo from here Related posts:New .NET LogoAdd Drop Shadow to Borderless FormC# Focus TextBox on Form Load Related posts: New .NET Logo Add Drop Shadow to Borderless Form C# Focus TextBox on Form Load

Share and Enjoy:
  • Digg
  • Google
  • del.icio.us
  • Technorati
  • Facebook
  • MySpace
  • TwitThis
  • Blogsvine
  • description
  • E-mail this story to a friend!
  • Ping.fm
  • Print this article!
  • Slashdot
  • Yahoo! Buzz

Type Name “UITypeEditor” Not Found

This is one of those “D’oh!” moments.  You’re creating your own UITypeEditor.  You know the UITypeEditor class is located in the System.Drawing.Design namespace.  So naturally you want to add to your Visual Studio project a reference to the System.Drawing.Design.dll, right?  Wrong!  When you compile your project, the following error may appear: The type or namespace name Related posts: Adding Assemblies to the Visual Studio "Add Reference" Dialog Web Service Stumper: “Ambiguous Type” IEventHandlerService Already Exists in the Service Container

Share and Enjoy:
  • Digg
  • Google
  • del.icio.us
  • Technorati
  • Facebook
  • MySpace
  • TwitThis
  • Blogsvine
  • description
  • E-mail this story to a friend!
  • Ping.fm
  • Print this article!
  • Slashdot
  • Yahoo! Buzz

How  and 65279 and Other Byte Order Marks (BOM) Can Mess Up Your XML

When you download XML text from the Web, you may find “garbage characters” in the start of your XML string.  For example, I encountered this result when I downloaded an XML string using WebClient.DownloadString method: <Root><Item>Hello, World</Item></Root> What you are likely seeing is a Byte Order Mark (BOM), which is a Unicode character that indicates the endian-ness Related posts: C# Convert Byte Array to String Read File into Byte Array

Share and Enjoy:
  • Digg
  • Google
  • del.icio.us
  • Technorati
  • Facebook
  • MySpace
  • TwitThis
  • Blogsvine
  • description
  • E-mail this story to a friend!
  • Ping.fm
  • Print this article!
  • Slashdot
  • Yahoo! Buzz

Read File into Byte Array

It’s easy to read a file into a byte array.  Just use the File.ReadAllBytes static method.  This opens a binary file in read-only mode, reads the contents of the file into a byte array, and then closes the file. string filePath = @"C:test.doc"; byte[] byteArray = File.ReadAllBytes( filePath ); Related posts:C# Read Text File Line-by-LineConvert String Related posts: C# Read Text File Line-by-Line Convert String to Byte Array C# Read Text File into String

Share and Enjoy:
  • Digg
  • Google
  • del.icio.us
  • Technorati
  • Facebook
  • MySpace
  • TwitThis
  • Blogsvine
  • description
  • E-mail this story to a friend!
  • Ping.fm
  • Print this article!
  • Slashdot
  • Yahoo! Buzz

Visual Studio Myth Buster

Do you need help convincing your boss that your company needs to upgrade to Visual Studio 2010?  Or perhaps you are looking for additional ammo in your .NET vs. Java religious wars with your programming colleagues? Microsoft has produced a Silverlight-based “Myth Busting Matrix” for Visual Studio.  This nifty web tool details the benefits of upgrading Related posts: Microsoft Unveils Visual Studio 2010 and .NET 4.0 Visual Studio 2010 and .NET 4.0 Beta 2 Documentation Available for .NET Framework 4 and Visual Studio 2010

Share and Enjoy:
  • Digg
  • Google
  • del.icio.us
  • Technorati
  • Facebook
  • MySpace
  • TwitThis
  • Blogsvine
  • description
  • E-mail this story to a friend!
  • Ping.fm
  • Print this article!
  • Slashdot
  • Yahoo! Buzz

Visual Studio 2010 Tip of the Day

Zain Naboulsi, a Senior Developer Evangelist at Microsoft, has started the “Tip of the Day” series for Visual Studio 2010, taking the reins from Sara Ford. Visual Studio 2010 Tip of the Day Related posts:Microsoft Unveils Visual Studio 2010 and .NET 4.0Visual Studio 2010 Beta 1 Now Available for MSDN SubscribersVisual Studio 2010 and .NET 4.0 Beta Related posts: Microsoft Unveils Visual Studio 2010 and .NET 4.0 Visual Studio 2010 Beta 1 Now Available for MSDN Subscribers Visual Studio 2010 and .NET 4.0 Beta 2

Share and Enjoy:
  • Digg
  • Google
  • del.icio.us
  • Technorati
  • Facebook
  • MySpace
  • TwitThis
  • Blogsvine
  • description
  • E-mail this story to a friend!
  • Ping.fm
  • Print this article!
  • Slashdot
  • Yahoo! Buzz

Microsoft Community Promise for C# and CLI

Microsoft is applying its Community Promise to the C# programming language and Common Language Infrastructure (CLI).  This means that anyone can freely build, sell, distribute or use programs with C# and the CLI without signing a license agreement or otherwise communicating to Microsoft.  This applies to all distribution models including open source and GPL.  Under Related posts: Blogs from Microsoft C# Development Team Microsoft to Share .NET Framework Code Microsoft Unveils Visual Studio 2010 and .NET 4.0

Share and Enjoy:
  • Digg
  • Google
  • del.icio.us
  • Technorati
  • Facebook
  • MySpace
  • TwitThis
  • Blogsvine
  • description
  • E-mail this story to a friend!
  • Ping.fm
  • Print this article!
  • Slashdot
  • Yahoo! Buzz

Microsoft Sets Windows 7 Pricing and Upgrades

Microsoft has announced retail pricing for Windows 7 that includes an option to preorder the operating system at a substantial discount.  From today through July 11, U.S. consumers can preorder an upgrade from XP or Vista to Windows 7 Home premium for $49 or Windows 7 Professional for $99.  However, XP customers must do Related posts: Determine Windows Version and Edition with C# Windows SDK for Windows 7 and .NET Framework 3.5 SP1: RC Microsoft to Share .NET Framework Code

Share and Enjoy:
  • Digg
  • Google
  • del.icio.us
  • Technorati
  • Facebook
  • MySpace
  • TwitThis
  • Blogsvine
  • description
  • E-mail this story to a friend!
  • Ping.fm
  • Print this article!
  • Slashdot
  • Yahoo! Buzz