Go Back   Forum Care Forums > Development Reference Area > Visual Basic

Reply
 
LinkBack Thread Tools Display Modes
Can't move controls on form
Old
  (#1)
Eric Kiernan
Guest
 
Posts: n/a
Default Can't move controls on form - 06-04-2007, 09:49 AM

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?


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: Can't move controls on form
Old
  (#2)
mayayana
Guest
 
Posts: n/a
Default Re: Can't move controls on form - 06-04-2007, 09:49 AM

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?
>
>



   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Can't move controls on form
Old
  (#3)
Eric Kiernan
Guest
 
Posts: n/a
Default Re: Can't move controls on form - 06-04-2007, 09:49 AM

that's the problem, thanks.

"mayayana" <EMAIL REMOVED> wrote in message
newsS7Zc.10360$EMAIL REMOVED link.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?
> >
> >

>
>



   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Can't move controls on form
Old
  (#4)
mickey
Guest
 
Posts: n/a
Default Re: Can't move controls on form - 06-04-2007, 09:50 AM

On Tue, 31 Aug 2004 18:30:43 -0700, "Eric Kiernan"
<EMAIL REMOVED> you typed some letters in random order:

>that's the problem, thanks.
>
>"mayayana" <EMAIL REMOVED> wrote in message
>newsS7Zc.10360$EMAIL REMOVED hlink.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?
>> >


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 ####
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Can't move controls on form
Old
  (#5)
Rick Rothstein
Guest
 
Posts: n/a
Default Re: Can't move controls on form - 06-04-2007, 09:50 AM


"mickey" <mickeyATgruizelgruis.nl> wrote in message
news:EMAIL REMOVED...
> On Tue, 31 Aug 2004 18:30:43 -0700, "Eric Kiernan"
> <EMAIL REMOVED> you typed some letters in random order:
>
> >that's the problem, thanks.
> >
> >"mayayana" <EMAIL REMOVED> wrote in message
> >newsS7Zc.10360$EMAIL REMOVED hlink.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?
> >> >

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

   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Can't move controls on form
Old
  (#6)
Bob Butler
Guest
 
Posts: n/a
Default Re: Can't move controls on form - 06-04-2007, 09:50 AM

"mayayana" <EMAIL REMOVED> wrote in message news:<DS7Zc.10360$EMAIL REMOVED hlink.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
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Contact Us - Forum Care Forums - Archive - Top