Solved

'RowSource' not a member of 'System.Windows.Forms.ComboBox'

Posted on 2004-09-29
3
560 Views
Last Modified: 2008-02-01
I am getting the error mentioned in the question title for a VB.NET snippet of code. Here it is:

Me.Combo32.rowsource = "select [qryrdselect].[refdesc], [qryrdselect].[refkey] from qryrdselect;"
Me.Combo32.requery()

What member can I select for Combo32 that is the equivalent of "RowSource"

Thanks :-)
0
Comment
Question by:mb_howard
[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 7

Accepted Solution

by:
gsiric earned 250 total points
ID: 12188110
There is a DataSource member, but the way how you fill your combo box from database is different.

Look more at:
http://www.vb-helper.com/howto_net_bound_combobox.html
http://www.syncfusion.com/FAQ/WinForms/FAQ_c43c.asp?print=561
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 12188882
This appears to be VBA code, perhaps from Access, that you are attempting to translate into VB.NET?  That probably will not work directly.

Access ComboBoxes are NOT the same kind of control as a ComboBox in .NET.  While they are FUNCTIONALLY equivalent, the coding to make them operate is quite different.

AW
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 12194294
Very good observation, Arthur :)

Bob
0

Featured Post

Certified OpenStack Administrator Course

We just refreshed our COA course based on the Newton exam.  With 14 labs, this course goes over the different OpenStack services that are part of the certification: Dashboard, Identity Service, Image Service, Networking, Compute, Object Storage, Block Storage, and Orchestration.

Question has a verified solution.

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

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

617 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