|
this is single handedly the most annoying behaviour of VS 2005
when you edit something in the designer, change a property or whatever, then change selected item with left button... the next thing you know your in code window and its assigned some message that u dont want...
any way to disable this annoying ***?
|
| fishandchips Friday, August 03, 2007 3:20 AM |
Hi,I am not quite clear with your question,which code make you uncomfortable?
Do you mean commentary words or something else ?
With Regards |
| Gavin Jin - MSFT Tuesday, August 07, 2007 8:37 AM |
What i mean is :
you select label A, change its text property then change to label B in the designer
and it somehow thinks you double click it and opens up code window with a click event
I seem to get this problem wherever i go
|
| fishandchips Wednesday, August 08, 2007 7:44 AM |
I encounter this bug as well, on a daily basis. It is hands down one of the most annoying aspects of working in the VS 2005 WinForms Designer.
How to reproduce - Start Visual Studio and create a new WindowsApplication VS opens the project and displays Form1 in the Designer - Using the Toolbox, add a S.W.F.Button to Form1 - Right-click Form1 > View Code - Right-click Form1 Code tab > New Vertical Tab Group - Click in the Code Editor so that the tab gets selected - Click directly on the Button1 added to Form1
What should have happened: - The WinForms Designer tab is selected - The Button on Form1 is selected
What actually happens: - The WinForms Designer tab is selected - Button1 is selected - VS deselects the WinForms Designer tab and selects the Code Editor tab - VS inserts a stub event handler for the Button1.Click event
This problem does not occur if you first click on the WinForms Designer tab or background.
All I wanted to do is switch to the WinForms Designer tab. Instead, VS undoes my mouse-click action and inserts stub code that 99% of the time I do not want and have to delete.
Any way to turn off this "feature" until Microsoft fixes this bug would be GREATLY appreciated.
|
| bk01 Wednesday, August 08, 2007 3:39 PM |
All clear, and I've seen this too, but what do you mean 'a S.W.F.Button?'
|
| Barry Seymour Wednesday, August 08, 2007 6:35 PM |
I am assuming System.Windows.Forms
|
| avargo Wednesday, August 08, 2007 7:03 PM |
| bimplebean wrote: |
All clear, and I've seen this too, but what do you mean 'a S.W.F.Button?'
| | Yes... "S.W.F" = System.Windows.Forms Were the steps to reproduce clear? You have to switch from any other tab to the WinForms Designer tab by clicking on any control that wasn't previously selected. The bug won't occur if you click on: a) the Designer tab, b) the Designer background c) a control that was previously selected |
| bk01 Thursday, August 09, 2007 1:40 PM |
Well I run the IDE in MDI mode, not tabbed mode, so I don't know about that. I find this behavior pops up from time to time and I don't remember the steps I took to get there. When it starts happening I shut down and restart the IDE and it goes away.
|
| Barry Seymour Friday, August 10, 2007 3:02 AM |
VS 2008 still does this, (Win forms editor)
IE, I have 2 textbox's in a form tab, over on the properties pane, i change the name on one then select the other then like 10% of the time, it will throw me into the code *as if I double clicked the control* with a new event.
Because this is not consistent, I gotta say this is bugged....
I'm pretty sure you can work around it by selecting another property on the first textbox (hence causing VS to update the designer code file with the new name) but none the less, it's just not natural to do that hence I keep falling into this trap.
- Proposed As Answer byMonsieur Thierry Thursday, September 17, 2009 8:02 PM
-
|
| fishandchips Wednesday, October 08, 2008 3:21 AM |
Here isthe workaround (in VS2005, I guess this also works with VS2008):
(same as you do) : select label A, change its text property (this is the workaround) :VALIDATE YOUR ENTRYHITTING THE"ENTER" KEY (same as you do) : change to label B in the designer
Best regards, Thierry - Proposed As Answer byMonsieur Thierry Thursday, September 17, 2009 8:03 PM
-
|
| Monsieur Thierry Thursday, September 17, 2009 8:02 PM |