# Re: ActiveX DLL 内是否可含有Form ? (无内文)

Posted by 笨小孩 on June 15, 1999 at 09:33:53:

In Reply to: Re: ActiveX DLL 内是否可含有Form ? (无内文) posted by 小赖 on June 14, 1999 at 19:25:22:

: : ActiveX DLL 内是否可含有Form ?

: 可以,但是没办法显示啰~~

可以啦,我目前所有系统密码登录均是call dll form
client :

Set apoleObj = CreateObject("aplib.tfm") '开启 dll
Bstates = LisaObj.Getlogin(Cnstring) '开启 login form

ole server:
Public Function Getlogin(ByVal Cnstring As String) As Boolean
Dim Tmpobj As New TZLOGIN 'formname
Tmpobj.Cnstring = Cnstring
Tmpobj.Show vbModal 'show form
Getlogin = Tmpobj.LCancelled '传出登录成功否
Unload Tmpobj
End Function

Follow Ups: