Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 84563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:57:03+00:00 2026-05-10T21:57:03+00:00

i’m trying to create a ObjectDataSource which I can use to bind to a

  • 0

i’m trying to create a ObjectDataSource which I can use to bind to a BindingSource which on his turn should be bound to a ComboBox.

I’ve created a simple class and a simple list for this class (see below)

  1. The Times list class is not showing up at my toolbox, so I cannot drag it to the form so I can select it as the datasource for a bindingsource.
  2. Second option is to create a new project datasource (ObjectDataSource). Here is asked to ‘select the object your wish to bind to’. I’ve added a friend/public/private variable to Form1 which instantiates the Times class. However this variable does not show. The only object which appears in my project namespace is Form1.

What am I missing?

Public Class Time     Private _timeValue As String     Private _timeDisplay As String      Public Sub New(ByVal Value As String, ByVal Display As String)         Me._timeDisplay = Display         Me._timeValue = Value     End Sub      Public Property Display() As String         Get             Return Me._timeDisplay         End Get         Set(ByVal value As String)             Me._timeDisplay = value         End Set     End Property      Public Property Value() As String         Get             Return Me._timeValue         End Get         Set(ByVal value As String)             Me._timeValue = value         End Set     End Property End Class  Public Class Times : Inherits List(Of Time)     Public Sub New()      End Sub End Class 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T21:57:04+00:00Added an answer on May 10, 2026 at 9:57 pm

    I can add the System.ComponentModel.DataObject attribute to the class. However I cannot add a System.ComponentModel.DataObjectMethod to my Display/Value property. When I change them to Functions I get the following error:

    ‘Overload resolution failed because no accessible New() accepts this number of arguments’

    'This works <System.ComponentModel.DataObject()> _ Public Class Time     Private _timeValue As String     Private _timeDisplay As String      Public Sub New()      End Sub      Public Sub New(ByVal Value As String, ByVal Display As String)         Me._timeDisplay = Display         Me._timeValue = Value     End Sub      'This doesn't work     <System.ComponentModel.DataObjectMethod()> _     Public Function getDisplay() As String         Return Me._timeDisplay     End Function      'This doesn't work     <System.ComponentModel.DataObjectMethod()> _     Public Function getValue() As String         Return Me._timeValue     End Function End Class 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 264k
  • Answers 264k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Your question is a bit awkward. Not sanitizing user input… May 13, 2026 at 12:13 pm
  • Editorial Team
    Editorial Team added an answer A singleton pattern ensures that you always get back the… May 13, 2026 at 12:13 pm
  • Editorial Team
    Editorial Team added an answer The problem is trying to use two endpoints with two… May 13, 2026 at 12:13 pm

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I want use html5's new tag to play a wav file (currently only supported
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I've got a string that has curly quotes in it. I'd like to replace
In order to apply a triggered animation to all ToolTip s in my app,

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.