Microsoft KB Archive/908275

= Error message when you try to add a new form to a Visual C++ Smartphone project in Visual Studio 2005: &quot;Object doesn't support this property or method&quot; =

Article ID: 908275

Article Last Modified on 12/23/2005

-

APPLIES TO


 * Microsoft Visual Studio 2005 Professional Edition
 * Microsoft Visual Studio 2005 Standard Edition

-





SYMPTOMS
When you try to add a new form to a Microsoft Visual C++ Smartphone project in Microsoft Visual Studio 2005, you receive the following error message:

Object doesn't support this property or method



CAUSE
This issue occurs because Visual Studio 2005 does not support adding a managed common language runtime (CLR) component to a Visual C++ project for a device.



Steps to reproduce the behavior

 * 1) Prepare the test computer by installing Visual Studio 2005 and the Smartphone 2003 SDK.
 * 2) In Visual Studio 2005, point to New on the File menu, and then click Project. The New Project dialog box appears.
 * 3) Under Project Types, expand Visual C#, expand Smart Device, and then click Smartphone 2003.
 * 4) Under Visual Studio installed templates, click Device Application (1.0).
 * 5) Type DeviceApplication in the Name box, type  :\ \ in the Location box, click to select the Create directory for solution check box, and then click OK.
 * 6) In File menu, click New, and then click Project.
 * 7) Under Project Types, expand Visual C++, and then click Smart Device.
 * 8) Under Templates, click Win 32 Smart Device Project, type ProjectName in the Name box, and then click OK.
 * 9) In the Win32 Smart Device Project Wizard, click Finish.
 * 10) Press CTRL-SHIFT-A to open the Add New Item dialog box.
 * 11) Click the Windows Form template, type FormName in the Name box, and then click Add.

You receive the error message that is mentioned in the &quot;Symptoms&quot; section.

Keywords: kbtshoot kbprb KB908275

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.