日期:2014-05-16  浏览次数:21025 次

如何调用自己控件
主要实验如何自己编写控件,新建控件,添加ImgEdit控件,代码如下
Option Explicit
Public Property Get ImgPath() As String
    ImgPath = ImgEdit1.Image
End Property
Public Property Let ImgPath(ByVal ImgPathValue As String)
 ImgEdit1.Image = ImgPathValue
End Property
Private Sub UserControl_Initialize()
    ImgEdit1.Display
End Sub


asp代码
<HTML>
<HEAD>
</HEAD>
<BODY>
<OBJECT id="ImgEdit1" classid="clsid:1E145DD7-C017-4C8B-A126-B9C049AC99AB" width="600" height="450">
<param name="ImgPath" ImgPathValue="image/0006.tif">
</OBJECT>
</BODY>
</HTML>

大家帮看看这种写法是否有问题,特别是不知道param 这种调用是否正确,TKS
------解决方案--------------------
http://bbs.csdn.net/topics/40480674