Results 1 to 1 of 1

Thread: Hot to add controls to a formless App?

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2001
    Location
    Amsterdam
    Posts
    5

    Unhappy 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...
    Last edited by FlorisF; Apr 4th, 2001 at 10:41 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width