Click to See Complete Forum and Search --> : how to create a listbox in a dll
Eis
December 28th, 1999, 04:36 AM
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
December 29th, 1999, 01:35 PM
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.
Ravi Kiran
December 31st, 1999, 07:38 AM
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
January 3rd, 2000, 08:50 AM
It is a bullshit answer
Crazy D @ Work
January 3rd, 2000, 10:01 AM
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 :-)
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.