I have been writing a program in VB 2005 and all was going well until now. All the controls on the main form are locked and I cannot unlock them. When I click on one it shows the little lock icon in the top left corner. The form itself is not locked. I believe it happened when I clicked on View>Designer. I never intentionally locked anything. If anyone has any ideas as to what happened and how I can unlock the controls I would appreciate it.
Can't unlock controls
Collapse
X
-
-
Originally posted by GBFD26Thank you for your responce. I tried that before and I tried it again, but it does not work. The controls still show the lock on the top left corner when selected and I cannot edit them. Any other ideas?
Let's walk through it again. It's not password protected is it? I suppose the portion that is locked is greyed out. Can you tell me if all items on your form is greyed out, as if locked, or is it only the one you need unlocked?Comment
-
Originally posted by DököllSorry to hear that...
Let's walk through it again. It's not password protected is it? I suppose the portion that is locked is greyed out. Can you tell me if all items on your form is greyed out, as if locked, or is it only the one you need unlocked?Comment
-
Thank you very much for your help. I have been too busy to work on this project lately, which is why I haven't responded. The controls are not greyed out on the form, but if I click on one the properties menue is greyed out. Also, each one of the controls has a little icon in the top left corner which looks like a grey piece of paper with an arrow pointing to a white piece of paper on top. Then if I select a control the locked icon appears above that. The form itself is not locked and I can edit it. Also, if I add new controls to the form they are not locked, and if I lock them they show the locked icon, but not the two pieces of paper an arrow icon. Also, the controls on the other forms in the program are not locked. Do you have any other ideas? Thank you very much for your help.Comment
-
Hi,
I guess, your Folder/ Forms are "Read-Only"
(May be you have copied from CD...)
Goto My Computer/Explorer, open your Folder where you have
saved your project, Select-All (Forms/modules) and remove Read-Only.. And Apply..
Regards
VeenaComment
-
Thank you very much for the suggestion, but that did not work either. I can edit the form, and I can add and edit new controls, I just cannot edit the controls which are already on the form. This is a form which I made myself and was writing code for, and then went back to view the form, and realized everything was 'locked'. The controls cannot even be copied since that is greyed out in the menu. I think the key to solving the problem is knowing what the little symbol at the top left of each control. It looks like a white piece of paper with an arrow pointing to a grey piece of paper on top of it. It is on all of the controls regardless of whether or not they are selected. Then if one is selected the little locked symbol shows up above that. I have attached a screen shot if that helps at all. I do not have this problem on the other forms in the program.Attached FilesComment
-
This happens when the form you are editing is inherited from another form. Check out this example declaration of a form:
Code:Public Class form2 Inherits form1 End Class
Comment
Comment