Forum  General Visual ...  Let's Chat Abou...  Sometimes I cannot delete any controls
Previous Previous
 
Next Next
New Post 1/14/2008 11:55 PM
  shlomi.bin
559 posts
1st Level Poster




Re: Sometimes I cannot delete any controlsThe  

Hi,

I tried following what you have described and could not get that same behavior. If you’ll be able reproducing it in another scenario - we'll be happy to hear about it.

Cheers,

Shlomi

 
New Post 1/16/2008 5:20 PM
  Tyson
157 posts
5th Level Poster




Re: Sometimes I cannot delete any controlsThe  

This ones been annoying me for a while. Finally worked out the sucker! (Well atleast one case) :)

I think its to do with syntax errors within the designer.

Create a new, or open an existing, Form or UserControl, it doesn't matter. Add a button to it (or any other control). Double click the button (ie. the shortcut for subscribing to the click event - or subscribe to any other event). Now within the code, delete the event handler method and go back to the control. You can no longer delete any controls.

The control hasn't re-generated its designer code - and so the control's event still has a subscription passing in an invalid delegate. The reason closing and reopening fixes the problem is because the designer code is regenerated, removing this event subscription.

Hope this helps.

Tyson.

 
New Post 1/17/2008 6:11 AM
  itzik.spitzen
1659 posts
1st Level Poster




Re: Sometimes I cannot delete any controlsThe  
Hi Tyson,

Thanks allot for your detailed description!

I'll see that it will be checked soon :)

Regards,
Itzik Spitzen
 
New Post 1/18/2008 4:23 AM
  nistam
218 posts
www.elval.gr
4th Level Poster


Re: Sometimes I cannot delete any controlsThe  
Tyson, you're the MAN!!! That happens to me too!!! I place a control, i double click it, i delete the event without writing something else, and when i get back to the form designer, i can't cut/paste. This issue is not at project level but at form level. That means that if you have FORM1 and FORM2, and you reproduce the issue on FORM2, then you don't have to close the whole project, but  only FORM2 files (designer and code files). Cut/paste on FORM1 is still performed. At least this happens on 5.83.2.

This is a long lasting annoying bug.

Tyson Rulez!! :-))))
 
New Post 1/19/2008 10:38 PM
  shlomi.bin
559 posts
1st Level Poster




Re: Sometimes I cannot delete any controlsThe  
Hi Tyson,

Thanks for the reproducing scenario - we are working on it.

Shlomi
 
Previous Previous
 
Next Next
  Forum  General Visual ...  Let's Chat Abou...  Sometimes I cannot delete any controls
Assessment Bottom
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS