Stickout – .NET 2.0, Outlook Word Excel Add-in, VSTO, Remoting, you name it

StickOut is a desktop sticky note application with multi-user
support and Outlook integration. It is a .NET Framework 2.0 Windows
Forms application that uses .NET Remoting to communicate with other
StickOut users and exchange sticky notes with them. It uses the new
.NET Framework 2.0 IPC Channel for communicating between Microsoft
Outlook and the StickOut process. The Outlook Add-in allows you to
stick anything out to the desktop from Outlook including e-mails,
notes, tasks, appointments, etc., as sticky notes. Care has been
taken to reduce the memory footprint of a .NET application
significantly and to make a fast and smooth user experience. This
article chronicles my first day of planning the application,
through subsequent design, development, testing, and deployment
days, revealing the evolution of the application, and the
complications I dealt with at each step. You will read about lots
of .NET tricks, deployment and versioning problems, Visual Studio
tricks, and some other non-development–related tricks that
might help you to boost your daily development work.

Hope you enjoy it!

Top questions asked about data grid

This paper addresses some
of the questions about customizing grid display that are commonly
asked in newsgroups, on Web sites, and in other developer forums.
The techniques described here are sometimes quite simple and at
other times somewhat involved. In each case, however, they address
a question of how to go beyond the basic functionality of the
DataGrid control.


  • Windows Forms versus
    Web Forms DataGrid Controls
  • Controlling Column
    Width, Height, and Alignment
  • Customizing Column
    Layout in Display and Edit Mode
  • Formatting Dates,
    Currency, and Other Data
  • Showing and Hiding
    Columns Dynamically
  • Adding Columns
  • Adding New Records to a
    Data Source Using the DataGrid Control
  • Displaying a Drop-Down
    List in Edit Mode
  • Selecting Multiple
    Items Using a Check Box (Hotmail Model)
  • Editing Multiple Rows
    At Once
  • Selecting Rows by
    Clicking Anywhere

New Model-Driven RAD Tool Generates up to 95% of a Custom Application

Model-Driven Development is a hot topic in the developer
community, but many still don’t know how to make it work in
real-life projects. By offering developers built-in guidance,
tangible architect makes Model-Driven Development finally
accessible to everyone. I have been working on a new custom UML
designer for making the design process a lot easier than using
generic UML designer. It will be released soon. Check out the cool

Simulate Windows Service using ASP.NET

How to run scheduled jobs from ASP.NET without requiring a
Windows Service to be installed on the server? Very often we need
to run some maintenance tasks or scheduled tasks like sending
reminder emails to users from our websites. This can only be
achieved using a windows service. ASP.NET being stateless provides
no support to run some code continuously or to run code at
scheduled time. As a result, we have to make our own Windows
Services in order to run scheduled jobs or cron jobs. But in a
shared hosted environment, we do not always have the luxury to
deploy our own windows service to our hosting provider’s web
server. We either have to buy a dedicated server which is very
costly, or sacrifice such features in our web solution. However,
running scheduled task is a very handy feature especially for
sending reminder emails to users, maintenance reports to
administrator, run cleanup operations etc. So, I will show you a
tricky way to run scheduled jobs using pure ASP.NET without
requiring any windows service. This solution runs on any hosting
service providing just ASP.NET hosting:

If you find this article useful, please vote for me.

.NET 2.0 Process Impersonation feature not working in Windows App

.NET 2.0 introduced an interesting feature in the “Process”
class where you can specify UserName, Password and it runs the
process as the specified user. However, it only works inside
Console Application. It does not run if the application is a
Windows Application. It throws “Win32Exception Access Denied” when
the Start() is called. Is it as designed? I really need this
feature in a windows service.

Try the following code in a console app, it will run perfectly.
But change the application type to “Windows Application” and
run, it will throw exception. IF you do not set the UserName,
Password, it will run then. I am using VS 2005 Release

Here’s the code:

ProcessStartInfo startInfo = new

startInfo.Domain = “.”;

startInfo.UserName = “test”;

// create a secure string from the password we have

SecureString securePassword = new SecureString();

foreach (char c in “test”)



startInfo.Password = securePassword;

startInfo.UseShellExecute = false;

startInfo.RedirectStandardOutput = true;

startInfo.RedirectStandardError = true;

startInfo.RedirectStandardInput = false;

startInfo.CreateNoWindow = true;

startInfo.WindowStyle = ProcessWindowStyle.Hidden;

startInfo.WorkingDirectory =


startInfo.Arguments = “Hi Hello How are you?”;

using (Process p = new Process())


p.StartInfo = startInfo;


string fileName = @”output.txt”;

using (StreamWriter writer = new StreamWriter(fileName))