|
-
December 28th, 1999, 05:36 AM
#1
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
-
December 29th, 1999, 02:35 PM
#2
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.
-
December 31st, 1999, 08:38 AM
#3
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
-
January 3rd, 2000, 09:50 AM
#4
Re: how to create a listbox in a dll
-
January 3rd, 2000, 11:01 AM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|