controls without a form (IIS app)
Helllo all,
in an IIS application there is no possibility to add a form to a project. It could be usefull to add some of the standard VB controls still. so I tried some
Dim MyDir As DirListBox, MyText As TextBox
Set MyDir = (New) DirListBox
Set MyText = (New) TextBox
MyText.Text = MyDir.List(MyDir.ListIndex)
which didn't work in exe-VB either, I never quite understood why by the way, but then there is the fabulous:
Dim MyDir As Object, MyText as Object
Set MyDir = Controls.Add("VB.DirListBox", "MyDir")
Set MyText = Controls.Add("VB.TextBox", "MyText")
MyText.Text = MyDir.List(MyDir.ListIndex)
but since there is nothing to "Controls.Add" to I can find, this also won't work.
Anyone knows the way?
Thanks!
Floris.
PS. CreateObject() sometimes works; not on all objects...