TabControl问题 [英] Problem with TabControl
本文介绍了TabControl问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的项目中有TabControl.
我想手动在选项卡之间导航.
是否有任何事件可以替代以禁用TabPage_header_click或Sth?
感谢您的宝贵时间.
I have TabControl in my project.
I want to navigate between tab just manually.
Is there any event to override for disabling TabPage_header_click or Sth like that?
Thanks for your time.
推荐答案
经过一些搜索,我只是创建了自己的TabControl:
I just create my own TabControl after some searches:
public class WizardTabControl : TabControl
{
protected override void WndProc(ref Message m)
{
// Hide tabs by trapping the TCM_ADJUSTRECT message
if (m.Msg == 0x1328 && !DesignMode)
m.Result = IntPtr.Zero;
else
base.WndProc(ref m);
}
}
这篇关于TabControl问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文