473,325 Members | 2,805 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,325 software developers and data experts.

Can't unlock controls

4
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.
Nov 8 '08 #1
9 9726
Dököll
2,364 Expert 2GB
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!
Nov 9 '08 #2
GBFD26
4
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?
Nov 15 '08 #3
Dököll
2,364 Expert 2GB
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?
Nov 16 '08 #4
Dököll
2,364 Expert 2GB
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:-)
Nov 16 '08 #5
GBFD26
4
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.
Nov 28 '08 #6
QVeen72
1,445 Expert 1GB
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
Nov 29 '08 #7
GBFD26
4
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 Images
File Type: jpg Screen Shot.jpg (35.2 KB, 631 views)
Nov 30 '08 #8
nano2k
2
GBFD26, I am experiencing the same problem.
Did you solve the problem? If so, could you share it?

Thanks.
Aug 11 '09 #9
This happens when the form you are editing is inherited from another form. Check out this example declaration of a form:
Expand|Select|Wrap|Line Numbers
  1. Public Class form2
  2.      Inherits form1
  3.  
  4. End Class
  5.  
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.
Aug 13 '13 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Eric Kiernan | last post by:
I have a form that I previously created and put a number of text box controls on. Everything previously worked. Now when I enter the form ( in design mode ), I can't move any of the controls to...
2
by: Unlock | last post by:
Greetings, Any expert able to help me to unlock the database at http://www.generate.netfirms.com/cgi-bin/to.cgi?l=res04 You will need to download the database which I have compressed into a...
1
by: M.C | last post by:
Following is a snap-shot of compiler created code when using UEM, use /Fx: struct __EventCriticalSectionStub { void Lock() {} void Unlock() {} }; ....
2
by: Mitch | last post by:
Would anyone have a routine kicking around that would take a users email address and convert it into a string of numbers to use as an unlock code? I am writing an application and would like it to...
3
by: m | last post by:
Hi, I'm running MySQL (5.0.18-nt) on WinXP with latest patches. I've some SQL code that generates an 'ERROR 11' in two different places depending on how the code is submitted. At the moment...
0
by: mschvili | last post by:
I try to control the number of how many users are on the site at the moment. To do so I have use the global.asax like this: <%@ Page Language="VB" ContentType="text/html"...
0
by: Petra | last post by:
Hi! I don't know how to handle the following problem: When a User clicks on the detail view of an item, I lock the item in the database. If the user exits with clicking the cancel or ok button...
5
by: petru.marginean | last post by:
Hello, I would like to re-implement this function that currently uses pthreads: pthread_mutex_t mutex; int i = pthread_mutex_init(&mutex, 0); void MutexCB(int lock) {
1
by: Sony Kalkan | last post by:
Hi, I want to unlock the drive programmatically ? is there an api function related to it. For instance, when i run chkdsk with /F parameter, i get "drive in use" error . I want to unlock drive...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shćllîpôpď 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.