Blog
Blog posts on .NET, Azure, and more.
How to use existing Database in Windows Phone
May 04, 2013 by Anuraj
.Net .Net 3.0 / 3.5 CodeProject Windows Phone
Normally in Windows Phone apps, we used to create Database in the Application Launch event, like the following if (!dataContext.DatabaseExists()) { dataContext.CreateDatabase(); }
Retrieving the COM class factory for component failed due to the following error: 800702e4.
May 02, 2013 by Anuraj
.Net .Net 4.0 Office Interoperability Visual Studio Windows Forms
While working on some outlook C# application I got a COM exception like this.
Assembly Binding Redirection in .Net
May 02, 2013 by Anuraj
.Net .Net 4.0 ASP.Net Windows Forms
Today I come across an application crash due to version mismatch. The application executable was compiled using version 1.0.x.x, and we were using 6.2.x.x. Due to this version mismatch application was crashing.
How to apply border color for TableLayoutPanel
May 02, 2013 by Anuraj
.Net .Net 4.0 Windows Forms
The TableLayoutPanel control arranges its contents in a grid. TableLayoutPanel doesn’t have border color property, but you can write custom code in CellPaint event to create border. Here is the code snippet which will help you to create border and apply color for TableLayoutPanel
How to send email messages with embedded images
May 01, 2013 by Anuraj
.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 the mail message with the help of LinkedResource and AlternateView classes.
Copyright © 2025 Anuraj. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Powered by Jekyll. Hosted with ❤ by GitHub