Solved

How to fill comboboxes on a custom control the return the selected values

Posted on 2007-03-27
3
201 Views
Last Modified: 2013-11-26
I have a headercontrol.dll I created with 3 comboboxes. I put the control on my new project form1, how do i fill the comboboxes in my headercontrol.dll based on some query on form1 load.
cboBuyer
cboVendor
cboreason.
0
Comment
Question by:LeeHopkins
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 6

Expert Comment

by:kerryw60
ID: 18803250
If you store your query in a DataTable you can:

With myCombo
            .DataSource = dtMyDataTable
            .DisplayMember = "FieldName"
            .ValueMember = "UniquID"    '(Optional, but usefull)
End With
0
 

Author Comment

by:LeeHopkins
ID: 18803287
??
I am confused i have my form1.
i put the control  headercontrol on the form
headercontrol contains there comboboxs,
cbobuyer,
cbovendor,
cboreason
on form1 I also have a list box based on this listbox selection i need to fill the three cbo's on  headercontrol. I can seem to see cbobuyer or cbovendor or cboreason? from from 1
0
 
LVL 11

Accepted Solution

by:
anyoneis earned 50 total points
ID: 18805806
Have you exposed cbobuyer, cbovendor, and cboreason by marking them public? If so, you should be able to reference this.HeaderControl1.cboBuyer....
0

Featured Post

More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question