TComponent问题(50分)

  • 主题发起人 liu30211
  • 开始时间
L

liu30211

Unregistered / Unconfirmed
GUEST, unregistred user!
在delphi
constructor Create(AOwner: TComponent)
在c#中
public stati void Create(这里用什么参数代替);
 
控件基类?
c#里面 有个Component类不行吗?
 
可以啊。
我用Control类主要是因为Form的 Controls 属性,那个用多了自然第一个想到的是Control。用Control的好处是它是所有控件的基类。
 
顶部