Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 7th, 2009, 09: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:
Reply With Quote
Reply


Thread Tools
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
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 03:54 AM
Need Sample code okshilato SQL Server 2005 0 March 28th, 2006 09:41 AM
Sample Code mirouvor Java Databases 1 January 2nd, 2006 01:28 PM
Where the sample code? rbtcx BOOK: Professional C#, 2nd and 3rd Editions 5 August 21st, 2003 02:58 AM



All times are GMT -4. The time now is 09:35 PM.


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