Learn how to a build a cloud-first strategyRegister Now


UserControl (System.Windows.Forms) Question

Posted on 2006-04-11
Medium Priority
Last Modified: 2008-03-10
I am having a very odd problem adding a .resx file to a UserControl.

The user control is part of a Module (basically a class library) inside a Composite UI Application Block application. For some reason, I can't add a .resx file. I clicked on the folder which contains my UserControl and chose =>Add =>New Item=> ResourceFile. I gave my resource file the same name as the user control.

When it is added, it's not showing where I expected it would in the project hierarchy. It shows up directly under the UserControl, and the designer file, which previously occupied that space, is now under the newly-added .resx file. Not only that, but I get a warning message every time I try to edit it.

Am I missing something really obvious here? I can't find any reference to this problem in VS 2005 help, or on the net.

Question by:marmaxx
  • 2
  • 2

Accepted Solution

prajeebkumar earned 900 total points
ID: 16432729
Why don't you delete the user control.. create a new one with the same name , when it properly creates all parts (designer and .resx files), replace them with what you had previoulsly... not the best way, but it should fix the problem, i think..

Author Comment

ID: 16456198
That's the odd thing here.... It's not creating the .resx file when I create the user control (just the designer). That was the first thing I tried.

I can't figure out why this is happening.

Thanks for the feedback.

Expert Comment

ID: 16456231
I'm not sure how to help you on this since I haven't had that problem so far. Hope someone else put some comments in here..

I noticed that you are doing some work on Composite appln block.. i'm not sure if you can answer one of the questions i posted ... helper asking for help :)


Author Comment

ID: 16699473
Thanks prajeebkumar!

Your answer put me on the right track. My issue had to do with a 'quirk' in VS2005, which I couldn't have discovered without you putting me on the right track. Thanks to everyone else as well for the feedback, it's appreciated.

Sorry about the delay in responidng. certain matters arose in my personal life which required my immediate attention, hence, my absense from the forum.

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

810 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