作者Cloud (抓不住...)
看板C_Sharp
标题[心得] tableLayoutPanel无法继承
时间Sat Apr 24 01:30:02 2010
今天写专案,困扰了我半天时间...
就是我写了一个样板的控制项,
然後利用 TableLayoutPanel 来做排版,
接着想要来继承该样板,但在 Desinger 却被锁住
也就是拉元件到 TableLayoutPanel 都不行...
本以为是将它设成 private,但设为 public 也不行
当然写程式来新增是没问题的,不过我有N个元件要加.....
想 call out 给盖兹兄...可惜他没空....
後来是 google 神说 TableLayoutPanel 不支援 visual Inheritance
其他还有:
ToolStrip, MenuStrip, ContextMenuStrip and StatusStrip
ToolStripContainer
ToolStripPanel
SplitContainer
TableLayoutPanel
FlowLayoutPanel
DataGridView
MaskedTextBox
WebBrowser
手上只有2005,不晓得之後的版本有无修正??
以上,请参考~
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 60.198.120.23
1F:推 JK:2008也是如此,目前无解啊~_~ 04/24 23:56