While developing a module for our Coop System application, I found a quirk bug on Visual Studio 2008 Designer.
The bug is about an enabled timer in a User Control in a Form. When switching to View Code, you can no longer edit your code since the cursor is focused somewhere else.
Steps to reproduce.
- Create a C# Windows Forms Application.
- Create a User Control into your project.
- Add a timer into your User Control.
- Add a TextBox item to the User Control.
- Select the timer and set the Enable to True in the Properties.
- Double -click the Timer to add a Tick event.
- In the Tick event, write the following code: textBox1.Focus();
- Build the solution.
- After successfully building the solution, you can now see the User Control from the Toolbox.
- Drag the User Control to the Form1 (main form)
- Build the solution.
- On the main form, switch to View Code.
- Holla!!! Now, see the effect.
Download the sample solution here BugOnDesignerWithTimer.zip