Posts Categorized: CodeProject

Unit Testing Windows Phone Applications

Posted by & filed under .Net, CodeProject, Unit Testing, Visual Studio, Windows Phone.

Recently Microsoft released Update 2 for Visual Studio 2012. If you installed the Update 2, you will get a new project template, under Windows Phone, Windows Phone Unit Test App. This will help you to create unit test project for Windows Phone 8 applications. Once you create the project, necessary references will be added to [...]

How to send email messages with embedded images

Posted by & filed under .Net, ASP.Net, CodeProject, Windows Forms.

While creating email messages with HTML content, normally the images are displayed with IMG tag, where the SRC attribute pointing to an image, which is hosted in the web server. Most email clients will not display the images, which is downloading from the web. Instead of pointing to web URL, you can embed image in [...]

How to install NuGet packages directly

Posted by & filed under .Net, CodeProject, Miscellaneous, Visual Studio.

If you are developing applications using VS 2010 Express editions, you will miss the Package Manager console, which helps us to install libraries or packages via NuGet. The Nuget package manager console is not integrated to VS 2010 Express editions.(Visual Web Developer Express is an exception, it has a package manager console integration). To overcome [...]

Using SynchronizationContext in Windows Forms

Posted by & filed under .Net, .Net 3.0 / 3.5, CodeProject, Windows Forms.

Long back I wrote a post about how to fix – System.InvalidOperationException – Cross-thread operation not valid exception, while we try to access user interface elements from a different thread, other than the thread(normally main thread), which created the user interface elements. .NET 2.0 brings us SynchoronizationContext which allows us to execute a section of [...]

Using Microsoft Ink Picture control

Posted by & filed under .Net, .Net 3.0 / 3.5, CodeProject, Windows Forms.

The InkPicture control provides the ability to place an image in an application and enable users to add ink on top of it. It is intended for scenarios in which ink is not recognized as text but is instead stored as ink. InkPicture control extends the default picturebox control. This post is about working with [...]