unable to delete items from forms

  • Thread starter Thread starter wja
  • Start date Start date
W

wja

I'm still new to VB.NET. I'm having an issue sometimes
when I place any control (we'll use a label for now) on a
form then I right-click on the item, it won't let me
delete it. I can do this numerous times. The only way I
can delete it is to find it in the "Class View" tree and
select "Go to Definition" then comment out or delete
the "Friend..." code. Then the form hangs for a minute
then the control dissappears. Directly after that, it
will then let me delete the other controls too. It's like
the form/project somehow gets locked down. I'd appreciate
any help with this. Thanks!
 
Hello,

Thanks for your post. As I understand, the problem you are facing is that
you cannot delete the controls in WinForm directly. Please correct me if
there is any misunderstanding. I think more information is needed before
moving forward:

1. Does the problem occurs to a specific project or to all the WinForm
projects? I suggest you to create a new WinForm project and see if it works.

2. When you right-click a control in the Form, can you see the "Delete"
menu or is it just grayed out? Please high-light the control, and press the
"Delete" key to check if the keyboard works. If the problem persists, do
you receive any error messages?

I look forward to hearing from you.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
I created another project and it didn't do it. I moved my
current solution that has the issue over to another
developer's machine and it does it too.
WHen I right click on any control it shows the menu but
it is all grayed out. the only thing enabled is the "View
Code" option.
I noticed something else too...If I double click on any
of the controls like a label, it generates the sub, which
is normal. I then highlight and delete the sub and go
back to the design tab. The system hangs for a second
then the menus are enabled.
My project is using SQL for a backend and I'm also using
the ComponentOne list box control. The form I'm using has
a tab control on it also.
It seems to me that for some reason the controls are
being locked when I do something then it never unlocks
the controls. I'm a pretty decent VB6 person and I'm
trying to get more into the VB.NET environment. I've
never seen anything like this.
It doesn't care what control I put on there either. It
even disables the send to front and the other right click
controls. they are disabled in the menu structure also.
 
Hello,

Thanks for your response. I think more information is needed before moving
forward:

1. What's the version of Visual Studio .NET, 2002 or 2003?

2. I suggest you to reboot Window system into Safe-Mode and then check
whether or not the problem still exists.

3. Since the problem occurs to a specific project, I suggest you to create
a new project of the same type and then add controls one by one to the form
to make it the same as the one which fails to work to check adding which
control may cause the problem.

In addition, is it possible for you to post a simple project which is able
to reproduce the problem? I will be glad to check it on my side.

I look forward to hearing from you.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top