473,397 Members | 1,985 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

unable to delete items from forms

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!
Jul 21 '05 #1
3 1387
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.

Jul 21 '05 #2
wja
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.

Jul 21 '05 #3
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.

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: tvaidie | last post by:
Hi all I have two one signing assembly registered in GAC in two different version. I want to remove them but I don't seem able to do so. First I used gacutil.exe, failed with this error...
4
by: David | last post by:
hello to everybody... in of directories on my pc i have a list of su-directories, and in each directory theres an image "picture.ico"... so then my program is starting to run, i add a new...
2
by: Al Murphy | last post by:
Hi, I've written a very basic windows application with a pushbutton and a listbox. When the user clicks on the button it should display a message in the listbox. Sounds simple right? Well mine...
2
by: Rene | last post by:
Hi all i need some help. i try to send mail with the following code. Private Sub LinkButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton1.Click Dim...
3
by: wja | last post by:
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...
2
by: Robin | last post by:
I have a main table that I need to delete records that arn't referenced in another. Query says I cannot delete. If I remove the reference query all deletes ok. Hope there is a way around this ?...
0
by: gnrgattadi | last post by:
Hi All, Im Unable to get desktop handle in vc++.net.Is there any method existed in .net that will provide desktop handle like in vc++ GetDesktopWindow(). In my Project I have to make A...
3
by: bhanubalaji | last post by:
hi, I am unable to disable the text(label) in javascript..it's working fine with IE,but i am using MOZILLA.. can any one help regarding this.. What's the wrong with my code? I am...
3
by: Constantine AI | last post by:
Hi i am trying to DELETE a Record if the details do not exist within a table. Here is my code below; Dim strSQL As String Dim strSQL2 As String Dim Reply As String Dim db As...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.