Solved

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

Posted on 2004-09-29
3
549 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
Comment Utility
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
Comment Utility
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
Comment Utility
Very good observation, Arthur :)

Bob
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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 long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 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

11 Experts available now in Live!

Get 1:1 Help Now