Posted on 2006-03-28
Last Modified: 2010-04-16
Is it possible to add an user control to my project (For ex: MyControl.cs : Control) without an .resx file. i.e. if we look as the MyProject.csproj file I want MyControl.cs to have s subtype of 'Code'.

We want a control that is derived from Control, but is built at runtime, so we don't need designer support.  However, whenever we choose ReBuild Solution, Visual Studio automatically changes SubType to "UserControl" and then complains that there is no .resx file.
Question by:sreenaths
    1 Comment
    LVL 5

    Accepted Solution

    open your .csproj in notepad. delete the lines where it references MyControl.resx. and never open MyControl.cs in designer.

    AFAIK, Visual Studio won't create .resx till you don't open it in designer, even if its subtype- usercontrol.

    try this, add a blank code file to the project, copy MyControl.cs code in it, and remove MyControls.cs. In all probability it should work.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now