Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 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 March 9th, 2006, 11:59 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Default Designer Errors with CF API calls

Hi all,
I am in desperate need of assistance.
I have a Pocket PC application that I wish to access the phones api for trapping sms's and retrieving the mobile number of the device.
I have code which I beleive will do this, but as soon as I add the classes to the project I get designer errors. I do not even have to use the code to get these errors. I have not found any reference on the net to the namespace mentioned in the error at all.
The error is
Code:
 One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. 

The type 'Microsoft.CompactFramework.Design.UnsafeUserControl' has no property named 'DataSource'. 
Hide    Edit 

at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement) 

The type 'Microsoft.CompactFramework.Design.UnsafeUserControl' has no property named 'DataSource'. 
Hide    Edit 

at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)
Following the Edit link takes me to the setting of a datasource attribute in a user control I have created.
The control is not related to the new classes I have added in any way.

Can anyone provide any direction as to why this is occuring?


======================================
They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================
__________________
======================================
"They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad."
--Shakespeare
======================================
 
Old March 10th, 2006, 12:09 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Default

The issue only seems to arise on forms that have a user control on them.
Please Help.

======================================
They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================
 
Old March 10th, 2006, 01:19 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Default

I have fixed the problem by populating a panel in the page rather than using a control that requires a datatable as a datasource.
I still dont understand why this is an issue.
I will get by, but would still appreciate in information as to why this is happening.
I try to use controls to isolate functionality whenever possible.

======================================
They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================





Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Designer to UI Designer jitesh82 BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 2 April 16th, 2011 01:04 AM
SSL on CF ( Trust Failure ) m2abhi25 .NET Framework 2.0 0 May 1st, 2007 05:18 AM
Ch. 12 - SqlDataSource Designer Errors llealii BOOK: Professional ASP.NET 2.0 Server Control and Component Development ISBN: 978-0-471-79350-2 2 April 11th, 2007 11:14 AM
API CALLS / USER32.DLL Epevas Classic ASP Professional 3 January 12th, 2007 10:12 AM
does anyone know anything about .Net CF 2.0 Morrislgn VB.NET 0 February 2nd, 2006 12:52 PM





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