Visual Basic6.0对象无法拖动移动

时间:2021-02-05 16:32:00

i am a newbie for visual project,i have downloaded some of the totorial to testing,however i found the object in those project are not able to drag to move or editing, anybody know is it have a object lock function in VB,if got how can i unlock it

我是视觉项目的新手,我已经下载了一些totorial来测试,但是我发现那些项目中的对象无法拖动移动或编辑,任何人都知道它在VB中有一个对象锁定功能,如果得到的话我怎么解锁它

2 个解决方案

#1


3  

Are you saying that you're in the VB6 forms designer, and you cannot move any of the controls on the form?

你是说你在VB6表单设计器中,你不能移动窗体上的任何控件?

If that's the case, I seem to remember that there's a "locked" property for the form - the setting for it should be in the properties window.

如果是这种情况,我似乎记得表单有一个“锁定”属性 - 它的设置应该在属性窗口中。

Hope that helps...

希望有帮助......

#2


3  

I read this in a post, it was the following google search link after this one for 'vb6 unlock drag move'. It worked for me.

我在一篇文章中读到了这篇文章,这是针对'vb6解锁拖动'之后的以下谷歌搜索链接。它对我有用。

This may not be the problem but it's something that you can check: There's a hidden setting (Microsoft even hides settings from programmers!) that will cause controls to be unmoveable. Open the .FRM file in Notepad. If it contains a line: LockControls = -1 then remove that line.

这可能不是问题,但是你可以检查一下:有一个隐藏的设置(微软甚至隐藏了程序员的设置!),这将导致控件无法移动。在记事本中打开.FRM文件。如果它包含一行:LockControls = -1则删除该行。

Original poster was named 'Mayayana' at: http://bytes.com/topic/visual-basic/answers/14881-cant-move-controls-form

原始海报在以下网址命名为“Mayayana”:http://bytes.com/topic/visual-basic/answers/14881-cant-move-controls-form

#1


3  

Are you saying that you're in the VB6 forms designer, and you cannot move any of the controls on the form?

你是说你在VB6表单设计器中,你不能移动窗体上的任何控件?

If that's the case, I seem to remember that there's a "locked" property for the form - the setting for it should be in the properties window.

如果是这种情况,我似乎记得表单有一个“锁定”属性 - 它的设置应该在属性窗口中。

Hope that helps...

希望有帮助......

#2


3  

I read this in a post, it was the following google search link after this one for 'vb6 unlock drag move'. It worked for me.

我在一篇文章中读到了这篇文章,这是针对'vb6解锁拖动'之后的以下谷歌搜索链接。它对我有用。

This may not be the problem but it's something that you can check: There's a hidden setting (Microsoft even hides settings from programmers!) that will cause controls to be unmoveable. Open the .FRM file in Notepad. If it contains a line: LockControls = -1 then remove that line.

这可能不是问题,但是你可以检查一下:有一个隐藏的设置(微软甚至隐藏了程序员的设置!),这将导致控件无法移动。在记事本中打开.FRM文件。如果它包含一行:LockControls = -1则删除该行。

Original poster was named 'Mayayana' at: http://bytes.com/topic/visual-basic/answers/14881-cant-move-controls-form

原始海报在以下网址命名为“Mayayana”:http://bytes.com/topic/visual-basic/answers/14881-cant-move-controls-form