Solved

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

Posted on 2007-03-27
3
180 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
Comment Utility
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
Comment Utility
??
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 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

6 Experts available now in Live!

Get 1:1 Help Now