Solved

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

Posted on 2004-09-29
3
550 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
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

864 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

24 Experts available now in Live!

Get 1:1 Help Now