Solved

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

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

815 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

9 Experts available now in Live!

Get 1:1 Help Now