Category Archives: C#.net

.Net Trimming Whitespace in an image

In case you wanted to know, it’s not quite that difficult to trim pure white pixels from an image in .net. The crux of the problem is really getting access to the color data and understanding what you are looking at when you have it. I will be demonstrating a method using 24 bits per pixel images only, but the concepts can be applied to other types.
Continue reading

Dot Net html editor to image

Dot Net html editor to image

While working on a commercial project, I was involved in providing a simple html rendering engine. Simple in terms of not being 100% complete, not necessarily in complexity. To help debug this, I created a sample app that demonstrates the workings of an html editor and the rendering in action.

Continue reading

Reusing the WebBrowser Control

Reusing the WebBrowser Control

I have found the need in several projects as of late to reuse the WebBrowser Control in .net  languages such as c#/vb.net. I have not ventured into the j# domain, but I have also played around with c++.net a little bit for various projects. There are a couple of things to keep in mind when reusing the control in different scenarios – most of which for my purposes do not include in a windows form for display purposes. For the most part making sure that there is a reference to System.Windows.Forms dll is in your References and making sure that the using or imports statements are also included this is a good first start.

Continue reading

Unexpected Error Adding new Data Connection in Visual Studio

Unexpected Error Adding new Data Connection in Visual Studio

Recently I was adding a Data Connection in Visual Studio, and I found that I kept getting an error message box whenever I tried.

There were a number of suggestions such as:

devenv.exe /reset

and doing a repair install which didn’t work.

Continue reading

Where to find sos.dll

Where to find sos.dll

If you are looking where to find sos.dll, please check the following locations before you download windebug tools:

C:\Windows\Microsoft.NET\Framework\v2.0.50727
C:\Windows\Microsoft.NET\Framework\v4.0.30319

For Details on why this may be missing in other framework versions see:

This post

Continue reading