|
-
Oct 25th, 2002, 03:27 PM
#1
Thread Starter
Member
ComboBoxes in DLLs on Tab Control
Does anyone know if there is a problem with filling dynamic combo boxes on a tab within a DLL?
They work in the development, but when compiled and ran, the combos don't fill. Any ideas?
Here's the code I'm using to fill them, this is the same code that I use in the main project to fill combos.
CODE:
comboPickupAtRegion.ConnectionString = g_cn.connectionstring comboPickupAtRegion.RecordSource = m_strSQL comboPickupAtRegion.Refresh
DoEvents
Yes the SQL does bring back a filled recordset.
-
Nov 1st, 2002, 05:29 AM
#2
In general, you use class modules and dll's for the returning of data aspect of your project, and structure your project to have the design aspect (i.e. forms and comboboxes) outside of the dll.
I.e. you would have a public function in your dll which returns a recordset, then in your form (outside of the dll in a different project), you would populate a combobox with this returned data - try & split your project out like this.
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
|