Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Cannot Make Changes to Forms via Designer: "Error HRESULT E_FAIL has been returned from a call to a COM component."
 

Cannot Make Changes to Forms via Designer: "Error HRESULT E_FAIL has been returned from a call to a COM component."

I have a development stopping problem with Visual Studio.

I am making a program using C++ and the Windows Forms Application base.

I am very far into development and have had no problems. However, I have just encountered this today and can not get rid of it.

Upon making changes to my forms using the designer (any changes from new components to cosmetic changes to existing items) and compiling I am thrown this error in a message box:

"Error HRESULT E_FAIL has been returned from a call to a COM component."

The project is then not saved properly and my changes are not seen when the code is running. This is weird as my code compilies without
an error (loads of warnings, but I didn't think that these would have an effect, tell me if they might).

I need this problem fixed ASAP. It is really serious. Can somebody please help?
m1ke.t  Sunday, April 19, 2009 3:14 PM
Hi m1ket,

As you said, the project is not saved properly. It might be crashed. You need to find which part might crash the project. Since I know little about your application, and I can't simply make a repro on my side, I can't infer which part might be the cause.

If it will cost little time to create a new form, and copy and paste the code to the new form, it would be better.

If you have any concerns, please feel free to let me know.

Best regards,
Bruce Zhou
Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Monday, April 20, 2009 4:36 PM
We are changing the issue type to “General Discussion�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by opening the Options list at the top of the post editor window, and changing the type. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.
Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Friday, April 24, 2009 3:22 AM
Hello,

I am getting precisely the same error. The same message when I try to save from Designer in VC++ express.

I've been working on my project for some time now and I cannot just make a new form and project.

I really need to resolve this as it is stopping development for me, too.

I might note that I had to declare some of my GUI controls as static in order to be able to access them properly from static functions i.e. timer functions.
Maybe this is the cause of the problem??

Any help appreciated.
Thanks.
videoz  Thursday, May 21, 2009 5:37 AM

You can use google to search for other answers

Custom Search

More Threads

• Visual inheritence problem
• Copy Screen to Form
• User Control
• Windows forms designer is disabled
• floating Toolbar (ie IDE)
• Tab Caption disappears, if I change the windows classic theme to windows xp theme using visual studio 2005
• Outlook2003 web Access Look&Feel
• Text align
• how to add event KeyPress in Panel?
• how print datagridview directly?