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
Solved

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

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

839 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