Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Emulating an MS Access ComboBox features

Status
Not open for further replies.

CodeBlind

Programmer
Jan 10, 2003
2
US
Hi there,

I am trying to upgrade my skills as an Access Developer to C# or VB.Net.

I want to build Windows Forms with Comboboxes and Listboxes. Is there a way to make the combo/list boxes have the similar properties in MS Access be placed in Windows Forms?

For example, MS Access comboboxes and listboxes have a properties to set the number of columns, what column the combobox or listbox is bound to, be able to hide the bound column, and the recordsource to populate the combobox or listbox list.

I know that this might take a few more steps in C# or VB.Net, but can someone lead me to the right direction?

Do I have to build seperate functions or classes to be able to emulate the comboboxes and listboxes in MS Access to Windows Forms?

If so, any suggestions on how?

Thanks in advance for any response that could help me understand my dilemma :)
 
Windows forms controls can be data bound. This means that the content of the control will correspond to the content of a data set. You can set the column to be displayed a.s.o. Check the MSDN library for details. If you don't understand ask again, I'll be glad to answer your questions.
 
hello alex,

thanks for the response,

i may not be searching correctly because when i do a search for combobox in the library, i am able to get to the description of the combobox with its methods and properties.

still i can't see anything that has to do with columns.

thanks again in advance for your response.
 
Try and see if you can do anything with the COM component of Micrsoft Data Combo control. I know you can have bound column as differing as to what your box lists. Not sure about displaying more than one column though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top