Can't unlock controls

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GBFD26
    New Member
    • Nov 2008
    • 4

    Can't unlock controls

    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.
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    Greetings, GBFD26!

    Go to Format + Lock Controls... on your menu bar. In your case, it might say Unlock controls. See if that works:-)

    You may need to select the fields you need unlocked firsthand...

    In a bit!
    Last edited by Dököll; Nov 9 '08, 07:53 PM. Reason: added remark...

    Comment

    • GBFD26
      New Member
      • Nov 2008
      • 4

      #3
      Thank 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?

      Comment

      • Dököll
        Recognized Expert Top Contributor
        • Nov 2006
        • 2379

        #4
        Originally posted by GBFD26
        Thank 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?
        Sorry 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

        • Dököll
          Recognized Expert Top Contributor
          • Nov 2006
          • 2379

          #5
          Originally posted by Dököll
          Sorry 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?
          Just went and tried again, and it works for me. Tell us more, I'm sure you're right, we'll get there:-)

          Comment

          • GBFD26
            New Member
            • Nov 2008
            • 4

            #6
            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

            • QVeen72
              Recognized Expert Top Contributor
              • Oct 2006
              • 1445

              #7
              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
              Veena

              Comment

              • GBFD26
                New Member
                • Nov 2008
                • 4

                #8
                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 Files

                Comment

                • nano2k
                  New Member
                  • Aug 2007
                  • 2

                  #9
                  GBFD26, I am experiencing the same problem.
                  Did you solve the problem? If so, could you share it?

                  Thanks.

                  Comment

                  • earthman
                    New Member
                    • Aug 2013
                    • 1

                    #10
                    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
                    If you try to edit form2 in the Form Designer, all of the controls that were inherited from form1 will have the little grey paper/white paper/arrow icon to show that they were inherited, and the little lock will appear to show that it can't be edited there. Edit the base class instead, in the example that would mean opening form1 in the designer, not form2. Also, you can modify the properties of the inherited controls in code -- just not in the designer.
                    Last edited by earthman; Aug 14 '13, 02:01 PM. Reason: Add more info

                    Comment

                    Working...