473,804 Members | 3,311 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can't move controls on form

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 other positions with my
mouse. This is also true of any controls that i add to the form. If i add
a new control, it also can't be moved. I notice that when i hightlite the
control(s) with the mouse, the little boxes in the line surrounding the
control are not filled solid, as they are on other forms. any ideas?
Jul 17 '05 #1
5 18361
This may not be the problem but it's something that
you can check:
There's a hidden setting (Microsoft even hides settings
from porgrammers!) that will cause controls to be
unmoveable. Open the .FRM file in Notepad. If it contains
a line: LockControls = -1
then remove that line.
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 other positions with my
mouse. This is also true of any controls that i add to the form. If i add a new control, it also can't be moved. I notice that when i hightlite the
control(s) with the mouse, the little boxes in the line surrounding the
control are not filled solid, as they are on other forms. any ideas?

Jul 17 '05 #2
that's the problem, thanks.

"mayayana" <ma**********@m indYYspring.com > wrote in message
news:DS******** **********@news read2.news.atl. earthlink.net.. .
This may not be the problem but it's something that
you can check:
There's a hidden setting (Microsoft even hides settings
from porgrammers!) that will cause controls to be
unmoveable. Open the .FRM file in Notepad. If it contains
a line: LockControls = -1
then remove that line.
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 other positions with my mouse. This is also true of any controls that i add to the form. If i

add
a new control, it also can't be moved. I notice that when i hightlite the control(s) with the mouse, the little boxes in the line surrounding the
control are not filled solid, as they are on other forms. any ideas?


Jul 17 '05 #3
On Tue, 31 Aug 2004 18:30:43 -0700, "Eric Kiernan"
<er*********@co x.net> you typed some letters in random order:
that's the problem, thanks.

"mayayana" <ma**********@m indYYspring.com > wrote in message
news:DS******* ***********@new sread2.news.atl .earthlink.net. ..
This may not be the problem but it's something that
you can check:
There's a hidden setting (Microsoft even hides settings
from porgrammers!) that will cause controls to be
unmoveable. Open the .FRM file in Notepad. If it contains
a line: LockControls = -1
then remove that line.
> 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 other positions withmy > mouse. This is also true of any controls that i add to the form. If i

add
> a new control, it also can't be moved. I notice that when i hightlitethe > control(s) with the mouse, the little boxes in the line surrounding the
> control are not filled solid, as they are on other forms. any ideas?
>


There is a button on your toolbar to lock/unlock the controls on a
form. It looks like a lock

If the button is not on your toolbar you can create it following this
little howto.
<snip from otherpost>
ISTR I had to do something to get those icons to appear on the toolbar, but I don't remember what it was.


Below is an old post of mine that outlines the procedure...

Rick - MVP

To clarify the Comment/Uncomment Block suggestions...

1) Right click on a blank area of the Command Bar (the one with all
the
icons) and select Customize from the popup menu.

2) Click on the Commands tab and select Edit from the ListBox on the
left.

3) Find the Comment Block icon and text description in the ListBox on
the right. Drag it on to the Command Bar at a location where you want
it
to be.

4) After doing that, the Modify Selection button will become active.
Click it and find the Name entry in the popup menu. Add an ampersand
in
front of the letter that you want to use for an Alt shortcut keystroke
(I picked the first letter - "C"). Hit the Enter key and you will then
be able to comment highlighted blocks of code by either clicking on
the
button or pressing Alt+C.

5) Repeat 3 and 4 above for the Uncomment Block (I chose the "U" for
its
Alt shortcut keystroke).

</snip>

Groetjenz,

Mickey
--
#### gewoan skrieve su ast ut seist ####
Jul 17 '05 #4

"mickey" <mickeyATgruize lgruis.nl> wrote in message
news:e9******** *************** *********@4ax.c om...
On Tue, 31 Aug 2004 18:30:43 -0700, "Eric Kiernan"
<er*********@co x.net> you typed some letters in random order:
that's the problem, thanks.

"mayayana" <ma**********@m indYYspring.com > wrote in message
news:DS******* ***********@new sread2.news.atl .earthlink.net. ..
This may not be the problem but it's something that
you can check:
There's a hidden setting (Microsoft even hides settings
from porgrammers!) that will cause controls to be
unmoveable. Open the .FRM file in Notepad. If it contains
a line: LockControls = -1
then remove that line.

> 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 other positions with
my
> mouse. This is also true of any controls that i add to the form.
If i add
> a new control, it also can't be moved. I notice that when i hightlitethe
> control(s) with the mouse, the little boxes in the line

surrounding the > control are not filled solid, as they are on other forms. any ideas? >


There is a button on your toolbar to lock/unlock the controls on a
form. It looks like a lock

If the button is not on your toolbar you can create it following this
little howto.
<snip from otherpost>
ISTR I had to do something to get those icons to appear on the

toolbar,
but I don't remember what it was.


Below is an old post of mine that outlines the procedure...

Rick - MVP

To clarify the Comment/Uncomment Block suggestions...

1) Right click on a blank area of the Command Bar (the one with all
the
icons) and select Customize from the popup menu.

2) Click on the Commands tab and select Edit from the ListBox on the
left.

3) Find the Comment Block icon and text description in the ListBox on
the right. Drag it on to the Command Bar at a location where you want
it
to be.

4) After doing that, the Modify Selection button will become active.
Click it and find the Name entry in the popup menu. Add an ampersand
in
front of the letter that you want to use for an Alt shortcut keystroke
(I picked the first letter - "C"). Hit the Enter key and you will then
be able to comment highlighted blocks of code by either clicking on
the
button or pressing Alt+C.

5) Repeat 3 and 4 above for the Uncomment Block (I chose the "U" for
its
Alt shortcut keystroke).

</snip>


Of course you would have to click on Format in the ListBox on the left
at Step #2 and find the Lock icon in the ListBox on the right.

Rick - MVP

Rick - MVP

Jul 17 '05 #5
"mayayana" <ma**********@m indYYspring.com > wrote in message news:<DS******* ***********@new sread2.news.atl .earthlink.net> ...
This may not be the problem but it's something that
you can check:
There's a hidden setting (Microsoft even hides settings
from porgrammers!) that will cause controls to be
unmoveable. Open the .FRM file in Notepad. If it contains
a line: LockControls = -1
then remove that line.


Try Format / Lock Controls
or right-click on the form and select Lock Controls
Jul 17 '05 #6

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

Similar topics

1
1946
by: Tony | last post by:
hi. using visual studio.net , when i add form object either web form or window forms , i can not move them to the location on the web by draging and droping them. they move but once the mouse buttoin is released they sanp back to thier original place. dose anyone knows how i can fix this. ? thanks
5
12239
by: Galina | last post by:
Hello I have an Access 2000 application. The form has got a tab with 3 pages. There are several text boxes and command buttons on one page. I need to move them to another page (to free form space for another control). Is it possible to move controls from one page of a tab to another, or I'll have to re-create them? If it is possible, please could you advise, how? I have tried to move one text box. It happily vanished. Thank you. Galina
1
254
by: simsimlhr | last post by:
We can move the form While mouse is pressed over title bar.If title bar is hide.Then how can we move the form while button is pressed over the client area. Any function Thanx in advance. Qasim Raza ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
1
1390
by: John S | last post by:
How can I move controls and set their forecolor and font size in code on the fly?
1
2126
by: David Sagenaut | last post by:
In 2003 VS.NET, I can drag a label control to design view, then I can move the label control around. But in 2005 VS.NET, I cannot move the label control around in design view after I drag a label control from toolbox. What kind of setting I need to in order to move controls around in design view? Thanks in advance! David
4
1736
by: Montaque [MVP] | last post by:
In VS.NET 2003, we can use CTL+ArrowKey to Move controls placed in the form or CTL+SHIFT+ArrowKey to adjust the size of controls. And the minimun step is one pixel, it is very terrible if you wanna change the position of a control a lot. i.e from the left corner to the bottom:) So is there any way to set the step of moving or adjusting , Say, 4 pixel or another settign. -- Best regards, Yongfeng Hou Microsoft .NET MVP Shanghai, China
0
785
menayah
by: menayah | last post by:
Hi all, How can i move the controls added to the web form using visual studio 2005? I'm new to VS2005 in VS2003 we just can change the mode of the webform layout.
2
5270
ammoos
by: ammoos | last post by:
Hi friends I couldnt move controls in a user form(ms excel) using keyboard but I can move it by mouse.. I couldnt understand whats the issue.. now I reinstalled ms office 2003 on my machine, before that there were no such issues.. pls help me.. Thanks Ammooss
0
9588
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10589
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10340
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9161
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7625
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4302
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2999
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.