在Web Forms里用Windows Forms控件

maliguo_net 2002-09-06 12:03:18
我看了QuickStrart里的例子,可是我做做了一个WinForms控件,在Web中怎么也调用不出来,那位大哥做过,能否给兄弟个例子啊,谢谢了!
================================================================

CSDN 论坛助手 Ver 1.0 B0402提供下载。 改进了很多,功能完备!

★ 浏览帖子速度极快![建议系统使用ie5.5以上]。 ★ 多种帖子实现界面。
★ 保存帖子到本地[html格式]★ 监视您关注帖子的回复更新。
★ 可以直接发贴、回复帖子★ 采用XML接口,可以一次性显示4页帖子,同时支持自定义每次显示帖子数量。可以浏览历史记录!
★ 支持在线检测程序升级情况,可及时获得程序更新的信息。

★★ 签名 ●
可以在您的每个帖子的后面自动加上一个自己设计的签名哟。

Http://www.ChinaOK.net/csdn/csdn.zip
Http://www.ChinaOK.net/csdn/csdn.rar
Http://www.ChinaOK.net/csdn/csdn.exe [自解压]

...全文
95 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
-_-中英文数字 2002-12-28
  • 打赏
  • 举报
回复
well,if you really want it,here's an example:
first,write a custom control(named "sample.dll"):

namesapce Sample
{
public class sampleCtl:System.Windows.Forms.CustomControl /*maybe i've missed something :) */
{
//codes here
}
}

than write a html file:
<head>
<body>
<object id="Sample" clsid="http:sample.dll#Sample.sampleCtl">
</object>
</body>
</head>

Put the two in the same virtual dir which has permission to execute scripts,than use your ie and type the correct url to see how it looks.
Since now,this only works on windows system that has .Net Framework and at least IE 5.5 installed.
hfayga 2002-12-24
  • 打赏
  • 举报
回复
这两者显示机制不同,应该不能混用
wsuyu_allcom 2002-12-24
  • 打赏
  • 举报
回复
当然可以了。不过你要在CLASSID中应用对DLL和正确的命名空间!!
monkey_zeng 2002-09-28
  • 打赏
  • 举报
回复
的确,客户端看不到有什么用.
qz4365 2002-09-27
  • 打赏
  • 举报
回复
用 项目/添加引用/选择System.windows.Forms.dll
再导入域名空间:using System.windows.Forms

这样是可以在web中使用window Forms,可是window form是在服务器端打开的.客户端是看不到的.这样有什么用呢?不用让每个客户都跑到服务器上去看打开的窗口吧
luhanzhang 2002-09-10
  • 打赏
  • 举报
回复
1)项目》添加引用》选择System.windows.Forms.dll
2)using System.windows.Forms
轻松搞定!!!
chnking 2002-09-09
  • 打赏
  • 举报
回复
WinForms的控件怎么能用在web上呢

1,978

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 其他语言讨论
社区管理员
  • 其他语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧