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 April 15th, 2008, 06:02 PM
Registered User
Join Date: Apr 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default What instance? - Data-binding to my class

I've created a class (ThemeManager) to manage visual themes for forms. The class provides properties such as colors to be used by forms and controls on the forms.

I want to bind properties of forms and controls to properties in my ThemeManager class.

When I used the VS property sheet to select a data source, my class appears as expected. I can select the desired property, at which point the context help informs me that an instance of ThemeManager will be placed on the form. Fine. And after doing this, I have a ThemeManagerBindingSource on the form.

But how do I reference the actual instance of ThemeManager created? My class has methods that I need to be able to call, but I don't see how the IDE exposes whatever instance created.

Similar Threads
Thread Thread Starter Forum Replies Last Post
static field with class instance prakash.suthar Java Basics 2 July 3rd, 2006 01:41 AM
Instance of same class in main method ajit Java Basics 1 July 1st, 2006 06:26 PM
How do I refer to a class instance in VB? James Diamond Beginning VB 6 7 February 9th, 2004 03:31 PM
Class data binding bmains Pro VB.NET 2002/2003 1 October 21st, 2003 03:13 PM
How to create a class instance dynamic??? ffbalota C# 0 September 21st, 2003 04:49 PM

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