Wrox Programmer Forums
|
BOOK: Professional Visual Studio 2008 ISBN: 978-0-470-22988-0
This is the forum to discuss the Wrox book Professional Visual Studio 2008 by Nick Randolph, David Gardner; ISBN: 9780470229880
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Visual Studio 2008 ISBN: 978-0-470-22988-0 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 March 7th, 2009, 10:42 AM
Registered User
 
Join Date: Mar 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with Sample code

I am trying to get the Chapter 26 sample code to run.
I am able to view data in both the local and server databases

When I press the Synchronize button on the localform I get an errror on line 19:

Dim c As LocalCRMDataSet.CustomersRow = _
CType(CType(Me.CustomersBindingSource.CurrencyManager.Current, _
DataRowView).Row, _
LocalCRMDataSet.CustomersRow)


Can anyone help me with this?


System.IndexOutOfRangeException was unhandled by user code
Message="Index -1 does not have a value."
Source="System.Windows.Forms"
StackTrace:
at System.Windows.Forms.CurrencyManager.get_Item(Int3 2 index)
at System.Windows.Forms.CurrencyManager.get_Current()
at QuickCRM.LocalForm.CustomersBindingSource_CurrentC hanged(Object sender, EventArgs e) in C:\Users\Matt\Documents\Visual Studio 2008\Projects\229880 ch26_code\QuickCRM\LocalForm.vb:line 19
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.BindingSource.OnCurrentChange d(EventArgs e)
at System.Windows.Forms.BindingSource.CurrencyManager _CurrentChanged(Object sender, EventArgs e)
at System.Windows.Forms.CurrencyManager.OnCurrentChan ged(EventArgs e)
InnerException:





Similar Threads
Thread Thread Starter Forum Replies Last Post
Iam having problem running ch18 sample code wanes98 Wrox Book Feedback 1 June 7th, 2007 07:19 AM
want sample code mohiddin52 Access VBA 2 December 16th, 2006 04:54 AM
Need Sample code okshilato SQL Server 2005 0 March 28th, 2006 10:41 AM
Sample Code mirouvor Java Databases 1 January 2nd, 2006 02:28 PM
Where the sample code? rbtcx BOOK: Professional C#, 2nd and 3rd Editions 5 August 21st, 2003 02:58 AM





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