Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 2005 > Pro Visual Basic 2005
|
Pro Visual Basic 2005 For advanced Visual Basic coders working in version 2005. Beginning-level questions will be redirected to other forums, including Beginning VB 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro Visual Basic 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 17th, 2008, 12:32 AM
Registered User
 
Join Date: Jan 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default DataBinding to class objects

I've split my solution into business layer (class objects), data layer (SQL specific), and UI layer (forms and user controls). I can add a datasource for my class objects within the main project but I can't do the same at my UI level where I need it.

I have an openning form in my main project which I can drag and drop the datasource objects to the form with no problem. However, I need this functionality in my UI form objects which are contained in a seperate project (.dll) which I reference in my main project.

When I try to add a datasource at my UI level I get the following problem: I select Object as my datasource and then select next. I get the following error: An unexpected error has occurred - Error Message: Object reference not set to and instance of an object.

Any ideas?

 
Old February 16th, 2008, 12:37 AM
Registered User
 
Join Date: Feb 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

can you post the code please..

 
Old February 17th, 2008, 06:04 PM
Registered User
 
Join Date: Jan 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your reply. This is not to do with code. I can't get to that step. This is to do with selecting classes as data source objects using the Data Sources tab within the IDE.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Databinding to a Listbox rwebb616 Visual Basic 2005 Basics 1 June 1st, 2008 04:59 PM
Databinding getdates moneymk109 ASP.NET 1.x and 2.0 Application Design 1 April 12th, 2006 10:31 PM
Cannot use class objects wcambris Access VBA 2 January 22nd, 2006 06:39 AM
Databinding with an inner join Louisa VB.NET 2002/2003 Basics 2 December 12th, 2003 04:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.