Solved

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

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

749 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