I've found that the DesignMode property is set to true when I debug a component by setting the component project as start-up project. I suppose that this property is set to true because, in fact, the devenv program is running, so the actual state is run-time.
This is what I want to do and I am struggling with it: I have a property which gets displayed in the property grid and when the user clicks on it, a form shows up which allows the user to select multiple email id's and when he clicks OK, the list should be displayed