Results 1 to 2 of 2

Thread: ComboBoxes in DLLs on Tab Control

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2001
    Location
    Cincinnati, OH
    Posts
    55

    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.

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    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.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

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