TabControl中的问题或错误 [英] Problem or Bug in a TabControl

查看:114
本文介绍了TabControl中的问题或错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

TabControl的问题是,当我尝试在页面上四处移动控件时,它们会自动移动到另一页.将它们定位在正确位置的唯一方法是在属性框中手动调整位置.
令人沮丧的费时-任何帮助将不胜感激.我在高低处寻找答案,甚至寻找同样问题的其他人.
使用VB.Net 2010

---
好吧,我认为这很简单.该问题有时仅以某些形式发生.控件是文本框,标签,列表的组合.超过一半的表格存在此问题.一共有60种表格,所以问题使我发疯.

我只是尝试用鼠标移动它们-应该很简单.
我现在想知道这是否与我在首页上放置的矩形"有关,一旦移动(使用鼠标),一切似乎都结束了.也许与"PowerPacks"有关?

---
Nube quickie-如何添加评论而不添加解决方案?

Problem with the TabControl is that when I try to move controls around on the page they move automatically to another page. The only way to locate them in the correct position is to manually adjust the location in the properties box.
Frustrating & time consuming - any help would be appreciated. I have searched high and low for an answer or even for someboody else having the same issue.
Using VB.Net 2010

---
Okay I thought it was straight forward. The problem only happens sometimes on some forms. Controls are combinations of text boxes, labels, lists. Over half the forms have this problem. There are 60 forms in total so the problem is driving me insane.

I just try to move them with the mouse - should be simple.
I am now wondering if it has something to do with the ''Rectangle'' that I put on the first page where everything seems to end up once moved (with the mouse). Perhaps its something to do with ''PowerPacks''?

---
Nube quickie - how do I comment without adding a solution?

推荐答案

矩形是面板吗?如果是这样,那么当您在其上拖动任何内容时,它将进入面板,并停留在该面板上.
检查:如果右键单击移动"控件,则将获得选择..."项目的列表,这些列表是控件所在的层次结构.对于直接在标签页上的按钮(例如),您将得到:
Is the rectangle a Panel? If so, then when you drag anything over it, it will enter the panel, and stay there.
Check: If you right click on a "moved" control, you will get a list of "Select..." items which are the hierarchy of where the control is. For a button (say) directly on a tab page, you would get:
Select tabPage1
Select tabControl1
Select Form1

对于面板上的同一按钮,在选项卡页上:

For the same button on a panel, on a tab page:

Select panel1
Select tabPage1
Select tabControl1
Select Form1

,依此类推.


这篇关于TabControl中的问题或错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆