This question is about code, not the IDE, so it doesn't belong in VS General at all. As your question pertains specifically to Windows Forms, I have moved it to the Windows Forms forum. Please post in the most appropriate forum for the topic, not just the first one in the list.