Core :: Visual WebGui

[ Home   |  Issues   |  Road Map   |  Change Log ]

 

Back

HyperLink [http://support.visualwebgui.com/Default.aspx?p=2&i=642

Registering to a control event through designer and then removing registration in code while designer is still open should not cause Visual Studio problems

Created: 21/05/2007 20:43:05     Revised:22/10/2009 08:17:10     

Description

Registering to a control event through designer and then removing registration in code while designer is still open should not cause Visual Studio problems

Scenario (by Palli):
1. Create a new Form
2. Add one Button control to it
3. Save the Form and close it
4. Reopen the Form
5. Select the Button, and via designer PropertyGrid/events, double click the Click event to add handler for click
6. The code window opens in a new tab
7. Click the design tab to see that you still have your properties (or events) for the button
8. Click the code tab, and delete the Click hander code
9. Go back to designer.

Problems:
All properties in the designer PropertyGrid are gone.
The list in the ComboBox above the designer PropertyGrid is still filled with the controls on the Form. Selecting a control from that ComboBox causes MS Visual Studio to crash.

Workaround suggestion:
Have all Form designer windows closed when making changes to event handlers in code.
Also, when you notice that the PropertiesWindow does not show the properties of the selected item, but a white space, save and close the designer window immediately and do not continue to work with it. Once closed, you can reopen it and continue to work as if nothing had happened.

See reproducing post:

http://www.visualwebgui.com/Forums/tabid/364/forumid/27/threadid/1914/scope/posts/Default.aspx

 

 

Additional Information

Prerequisites
Work Priority Highest
 
Issue Links

      
Duplicate Outbound link - this issue links to the other issue VWG-2445 Bug Deleting a control doesn't workClosed
Related Outbound link - this issue links to the other issue VWG-3362 Bug Wrapped control Properties disapper from time to timeClosed
Outbound link - this issue links to the other issue VWG-4433 Bug Renaming a Form should maintain designer stabilityClosed
Outbound link - this issue links to the other issue VWG-5055 Bug Changing text on a contextmenu item should show directly in control design time without reopening form in designerClosed
Outbound link - this issue links to the other issue VWG-2666 Bug SplitContainer rename not refreshed in properties until reload of formClosed
Outbound link - this issue links to the other issue VWG-2078 Bug Copied controls get "lost"Closed
Grouped Inbound link - other issue links to this issue VWG-4787 Task Migrate controllers to designer mechanismAssigned
Outbound link - this issue links to the other issue VWG-68 Bug Picturebox design time behaviourClosed

 

 

Comments  
 
Andrew Filinyuk   22/10/2009 08:17:10      

QA ACCEPTED

- Tested by: Andrew Filinyuk at: 21/OCT/2009

- .NET Version(s): 2005, 2008

- Visual WebGui Version: VWG v6.4 Prevew4
- Additional info: attached archive contains VS2005 and VS2008 apps.

 

 
Dror Shahak   14/10/2009 09:46:20      * CLOSING COMMENT *

Revisions:
12208 - 6.4
12216 - 6.3

 

 
Ori Cohen   14/10/2009 08:25:49      

Fix implemented also in VWG v6.4 Preview4.

 

 
Ori Cohen   14/10/2009 08:22:59      

Link to new forum thread:
http://www.visualwebgui.com/Developers/Forums/tabid/364/forumid/25/threadid/32412/scope/posts/Default.aspx

 

 
Pall Bjornsson   25/08/2009 21:06:23      

Link to new forum thread:
http://www.visualwebgui.com/Developers/Forums/tabid/364/forumid/50/threadid/30322/scope/posts/Default.aspx

New error message in this thread: "the designer loader did not provide a root component but has not indicated why"

 

 
Pall Bjornsson   18/08/2009 17:39:16      

Link to new forum thread:
http://www.visualwebgui.com/Developers/Forums/tabid/364/forumid/48/threadid/29854/scope/posts/Default.aspx

 

 
Pall Bjornsson   03/07/2009 21:16:23      

Link to new forum thread.
http://www.visualwebgui.com/Developers/Forums/tabid/364/forumid/59/threadid/28135/scope/posts/Default.aspx

 

 
Pall Bjornsson   25/05/2009 17:29:26      

Link to new forum thread:
http://www.visualwebgui.com/Developers/Forums/tabid/364/forumid/48/threadid/25996/scope/posts/Default.aspx

 

 
Pall Bjornsson   08/05/2009 18:51:50      

Link to new forum thread:
http://www.visualwebgui.com/Developers/Forums/tabid/364/forumid/29/threadid/24355/scope/posts/Default.aspx

 

 
Pall Bjornsson   07/05/2009 16:38:40      

Link to new forum thread:
http://www.visualwebgui.com/Developers/Forums/tabid/364/forumid/48/threadid/25012/scope/posts/Default.aspx

 

 
Pall Bjornsson   23/04/2009 15:00:53      

Link to new forum thread:
http://www.visualwebgui.com/Developers/Forums/tabid/364/forumid/27/threadid/24330/scope/posts/Default.aspx

 

 
Pall Bjornsson   13/04/2009 20:27:01      

Link to new forum thread:
http://www.visualwebgui.com/Developers/Forums/tabid/364/forumid/31/threadid/23976/scope/posts/Default.aspx

 

 
Pall Bjornsson   13/04/2009 19:29:49      

Link to new forum thread:
http://www.visualwebgui.com/Developers/Forums/tabid/364/forumid/29/threadid/23937/scope/posts/Default.aspx

 

 
Pall Bjornsson   01/04/2009 17:27:18      

Link to new forum thread:
http://www.visualwebgui.com/Developers/Forums/tabid/364/forumid/27/threadid/23186/scope/posts/Default.aspx

 

 
Pall Bjornsson   31/03/2009 08:50:39      

Found a reproducable sequence of events in 6.3.6 NET 3.5 for the "missing properties" part of this issue:

1. Create a new form
2. Add one button to it
3. Save the form and close it
4. Reopen the form
5. Select button, and via property grid/events, double click the Click event to add handler for click
6. The code window opens in a new tab
7. Click the design tab to see that you still have your properties (or events) for the button
8. Click the code tab, and delete the Click hander code
9. Go back to designer, and all properties are gone.

 

 
Ori Cohen   24/03/2009 06:22:45      

Link to new forum thread:
http://www.visualwebgui.com/Developers/Forums/tabid/364/forumid/-1/threadid/22746/scope/posts/Default.aspx

In this thread, Danny suggests that in his VS Express 2008 this happens every time he moves from code to designer.

 

 
Pall Bjornsson   26/02/2009 15:27:27      

Link to new forum thread:
http://www.visualwebgui.com/Developers/Forums/tabid/364/forumid/48/threadid/21184/scope/posts/Default.aspx

 

 
Ori Cohen   26/02/2009 10:05:26      

When removing a registered event listener method without first removing the registeration and while the designer tab is open, this would cause right clicking on the control in the designer not to show the context-menu and the property-grid that should show the properties of the control would be empty.

To get the designer working again, you would need to close the designer window and reopen it.

 

 
Itzik Spitzen   02/03/2008 01:56:04      

Changed to Minor since it has a Workaround.

 

 
Shlomi Bin   12/11/2007 09:01:11      

Forum thread...

 

 
Issue Details
Issue ID VWG-642
Type Bug Bug
Priority Minor Minor
Visibility Public
Assigned to Guy Peled
Reported by Guy Peled
Component Design Time
Fixed For Version [6.3.11] 1.1 (build 6.3.11) Due 14 Oct 2009
Risk Level No Risk
Status Closed 
Resolution Complete - QA 
 Print view