问题标签 [tabpage]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
6596 浏览

.net - 如何确定哪个 TabPage 当前处于活动状态?

我想了解窗口中的哪个标签页处于活动状态。我的目标是这样的:

我将在表格关闭时写下来。

0 投票
1 回答
1217 浏览

c# - 在标签页顶部绘制突出显示

我在我的 Windows 窗体应用程序中使用 TabControl (c#)

我想使用hightlightcolor在标签页标题的顶部绘制突出显示。

http://img4up.com/up2/83871411772596923665.jpg

谢谢

0 投票
3 回答
8167 浏览

c# - 我怎样才能使 WinForms TabPage 标题宽度适合它的标题?

我怎样才能使 WinForms TabPage 标题宽度适合它的标题?这是问题所在。

在此处输入图像描述

0 投票
2 回答
1809 浏览

c# - Show TabPage header image on the right

When you set ImageIndex (or ImageKey) for TabPage control image in tab's header is shown on the left.

enter image description here

How can i move it to the right?

0 投票
1 回答
3088 浏览

c# - 在表单加载时禁用标签页,然后在按钮单击时启用

我在 TabControl 中有四个 TabPages,在表单加载时,第一个 TabPage 应该是 Enable 而其他的应该是禁用的。(不隐藏、删除或禁用 TabPages 的内容)。

以下是第一个 TabPage 启用,其他禁用,并且它们的文本也暗淡的示例

在此处输入图像描述

我是 C# 新手,在 c# 2010 中寻找简单而准确的解决方案

谢谢

0 投票
2 回答
7026 浏览

c# - 使用其中的按钮在标签页之间切换

我在表单中有一个选项卡控件,并且用户控件在表单加载事件中加载到每个选项卡页上。我想使用选项卡页中的命令按钮在选项卡之间切换,这意味着这些按钮位于不同的用户控件中,而不是在表单上。

因此无法使用。我怎样才能做到这一点?

0 投票
1 回答
3141 浏览

c# - 向标签页运行时添加控件

我正在使用 C# 和 winForms,我有几个 tabcontrols,其中包含几个标签页,我想添加我的用户控件的所有标签页,最好,如果我可以在用户单击标签页后添加它。它只对我有用,当我在构造函数中添加这个控件时 - 是什么导致应用程序启动延迟 - 大约 3 秒,非常多。

我想在运行时添加这个控件,比如

但它不起作用,我也尝试使用 Invalidate 或 Refresh 方法,但它不起作用。

那么有没有可能在构造函数之外的其他方法中添加这个 userControls 呢?也许是它的问题,我在 TabControl 中有 TabControl,我必须通过父 TabControl 添加这个控件?谢谢!

0 投票
1 回答
782 浏览

vb.net - won't add TabPage to TabControl

I'm trying to add a tabPage to an existing TabControl named TabControl4 I went all over it with the Debugger and everything is fine, but it won't show the TabPage in the TabControl. That's the code, Notice all the information being added to the TabPage is retrieved from a database so don't pay any attention to it, plus the software is in Hebrew so just ignore the Hebrew Strings.

0 投票
3 回答
9057 浏览

c# - tabPage 上的水平滚动条

在 Visual Studio 2010 的设计模式下工作...

我正在尝试在 tabPage 上获得水平滚动条。根据我在这里和那里阅读的理解,AutoScroll将 tabPage 的属性设置为True应该足以获得滚动条。

当我在 tabPage 上放置一个超出 tabPage 下限的元素时,我会得到一个垂直滚动条。但是当我让一个元素超出 tabPage 的右限制时,不会出现水平滚动条。

我究竟做错了什么?

0 投票
2 回答
3257 浏览

c# - 使图像可滚动

我里面有 TabPageControl 和一些 TabPages。我需要将大图像放入标签页并每 30 秒更改一次,我只想查看图像的一部分。所以我需要滚动。但我遇到了下一个麻烦:当我滑动滚动条时,图像消失或出现 1 个黑色条纹。我用谷歌搜索了这个问题,但没有找到任何信息。