Forum  General Visual ...  Announce It! ( ...  Controls deletion through the VWG designer
Previous Previous
 
Next Next
New Post 11/12/2007 2:09 AM
  shlomi.bin
558 posts
1st Level Poster




Controls deletion through the VWG designer 
Hi,

Did anyone ever bumped into a scenario when he could not delete a control through the VWG designer unless he close and reopen the designer?
I will be very glad to receive an accurate reproducing scenario so I'll manage to fix this issue.

Shlomi
 
New Post 11/12/2007 6:02 AM
  nistam
199 posts
www.elval.gr
5th Level Poster


Re: Controls deletion through the VWG designer 

Aaaaah yes!!! It's my fault guys, last week i found out exactly when this happens, but was so busy that i forgot to mention here. So here it is how you can reproduce it:

1) Create a new VWG project

2) Open the default-created Form1. It is blank.

3) Insert a panel and give it a red color (or whatever, its not part of the problem). Leave its name to Panel1.

4) Within Panel1, insert another panel, and change its color to blue. Leave its name to Panel2.

5) Right click on the form, or the panel, just to make sure you see the Copy/Paste/Delete options are enabled (Paste should be disabled)

Now, in my scenario, i want to remove Panel2 from inside Panel1 and want to have it next to Panel1, both Panel1 and Panel2 on the main Form container. And here starts the part of the problem:

6) Instead of doing the common action, which is cut Panel2 and paste it on the main form,  go to the designer file and remove or comment out the line Me.Panel1.Controls.Add(Me.Panel2). Then, search for the line Me.Controls.Add(Me.Panel1). This command adds the Panel1 control on the form. Below this command, add the command Me.Controls.Add(Me.Panel2)

7) Switch back to the Form Designer and see that the Panel2 is outside Panel1.

8) Right click on whichever part of the Form you want and vuala!!!, almost every menuitem is disabled!!!

Sometimes I also receive an error which i can't recall, but this happens (i guess) when the form contains too many controls

I tested this just before i write this post. I hope this helped.

Maybe there are other ways to reproduce it, let's hope this is the only one :-)))

 

 
New Post 11/12/2007 7:20 AM
  dubem1
780 posts
1st Level Poster




Re: Controls deletion through the VWG designer 

I am facing this behaviour sometimes too. I never change the code in the designer file myself so it happens with a different scenario but unfortunatly, I can't say exactly how.

Personnaly, i don't think it's a majot problem since I can close and reopen the form and it has no effect at runtime.

I would prefer the release of 5.85.5 ans 5.85.6 

Thank you

dubem

 

 
New Post 11/12/2007 7:50 AM
  bsimmons
21 posts
No Ranking


Re: Controls deletion through the VWG designer 

I too have encountered this issue, and I too just close and re-open.

Bernard

 
New Post 11/12/2007 8:31 AM
  nistam
199 posts
www.elval.gr
5th Level Poster


Re: Controls deletion through the VWG designer 

My scenario occurs all the time!!

 
Previous Previous
 
Next Next
  Forum  General Visual ...  Announce It! ( ...  Controls deletion through the VWG designer
Most promising startups
Top 3 most promising startups in 2009
   AJAX Framework | Web Development | Cloud applications | RIA Development | Silverlight Applications | Legacy Migration
The most popular open source Ajax applications framework for enterprises | Sitemap | Terms Of Use | Privacy Statement
Copyright © 2005-2009 Visual WebGui®    Design By: Template World
   
Visual Studio Partners