Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 2005 > Pro Visual Basic 2005
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 15th, 2008, 06:02 PM
Registered User
 
Join Date: Apr 2008
Location: WA, USA.
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.

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:30 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.