询问者
怎么这句代码Panel1.Handle,提示有错误。

问题
-
SetParent(p.MainWindowHandle, Panel1.Handle);
错误 1 “System.Web.UI.WebControls.Panel”不包含“Handle”的定义,并且找不到可接受类型为“System.Web.UI.WebControls.Panel”的第一个参数的扩展方法“Handle”(是否缺少 using 指令或程序集引用?)
我是用VS 2010来编写的
- 已移动 ThankfulHeart 2013年5月12日 7:13 ASP.NET问题
全部回复
-
你如果是WebApp的控件Panel,没有Handle这个属性。
如果是WinApp,那么有。
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats
Found any spamming-senders? Please report at: Spam Report -
你要实现啥功能?是在ASP.NET里边编程吗?
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats
Found any spamming-senders? Please report at: Spam Report