Solved

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

Posted on 2007-03-27
3
182 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
A short film showing how OnPage and Connectwise integration works.

932 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now