CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 1999
    Location
    germany
    Posts
    8

    how to create a listbox in a dll

    Hi,

    i currently writing on a activex dll. now i will display some data in a listbox but i have no default frame because it is a dll. How can i create and show a listbox or something similar in a dll ?

    THX



  2. #2
    Guest

    Re: how to create a listbox in a dll

    Well,

    If you are using this dll from an exe project, you would basically set up a property function in your dll that retrieves the data to be displayed and display it on the form in the exe project. Other than that, you can't display controls in dll's because their is no way a dll can recieve messages from windows to pass to any given control. The only possible way would be in C++, but even then, dll's are not designed to have a user interface.


  3. #3
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: how to create a listbox in a dll

    VB's dlls being active-x in nature fully support message processing. So you can include a form in the dll, and have a list box in it, and pupulate it and show. No problems.

    If you want you might even include a public interface to show/hide the form from outside the dll also.

    RK

  4. #4
    Guest

    Re: how to create a listbox in a dll

    It is a bullshit answer


  5. #5
    Join Date
    Apr 1999
    Location
    Netherlands
    Posts
    181

    Re: how to create a listbox in a dll

    Shut up until you register yourself as user instead of the coward anonymous.

    Yes you can show a form from within the dll.
    You can also think of returning an array with all the values and let the client of the dll fill the listbox, or let the program passing a listbox (if that's possible, or else an Object and check if it's a listbox)
    Just a thought.. never had the urge to fill a listbox from a dll...

    Crazy D @ Work :-)

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

Featured