Tag Archives: Windows Forms

Getting random List Items using LINQ

Today while writing test cases, I come to scenario, where I need to take random values from my generic list, and here is the snippet, which will randomly select (not exactly select, it is ordering) Happy coding

Posted in .Net, .Net 4.0, ASP.Net | Tagged , , , , | Leave a comment

How to add simple water mark to images

While working on one of my friend’s blog, I got a chance to write a code snippet which helps to add water mark for all images automatically. And I created a simple library do this. I added few extra options, … Continue reading

Posted in .Net, .Net 4.0, ASP.Net, Windows Forms | Tagged , , , , | 1 Comment

CaptureItPlus – A screen capture utility

Few days back I started working on another open source project, for capturing screen shots. It is similar or can be used as an alternative to Snipping Tool in Windows Vista / 7. Here is the main features of CaptureItPlus … Continue reading

Posted in .Net, .Net 3.0 / 3.5, Miscellaneous, Win 32 API, Windows Forms | Tagged , , , , , | 4 Comments

Image cropping control in C# for Windows Forms

This post is also inspired by a SO post – Image Cropping Control for WinForms with Selection Rectangle. I had done a similar implementation using VB.Net long back but I couldn’t remember the implementation. Today I tried it again and … Continue reading

Posted in .Net, .Net 3.0 / 3.5, .Net 4.0, Windows Forms | Tagged , , , , | 2 Comments

How to use TaskDialog API in C#

The TaskDialog API replaces MessageBox. A message box is useful for prompting users for an acknowledgment, confirmation, or an answer to a yes or no question. Message boxes are popular because of the MessageBox function is convenient for developers to … Continue reading

Posted in .Net, .Net 3.0 / 3.5, .Net 4.0, Win 32 API, Windows 7, Windows Forms, WPF | Tagged , , , , , , , | 4 Comments