We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Object not set error in class

Thread ID:

Created:

Platform:

Replies:

10947 Feb 17,2004 04:23 PM Windows Forms 0
loading
Tags: FAQ
Eddie Merrifield
Asked On February 17, 2004 04:23 PM

Hi, I've created a class around the datagrid. This class has methods around the datagrid, doing things like column formatting, giving new headertext on the columns and other things. On my PC, it works great. On a colleagues PC, the following line generates an error: Dim cm As CurrencyManager = CType(BindingContext(Me.DataSource, Me.DataMember), CurrencyManager) The error generated is an "Object not set....." error. when mousing over the line from my PC, the word "BindingContext" has a value of: {System.Windows.Forms.BindingContext}" on her PC, it has a value of Nothing. I'm sure this is the reason for the error, but I do not understand the behavior. Again, the code is wrapped within a class, and called using similar methods. Any ideas? Thanks Eddie

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;