Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7651901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T11:37:20+00:00 2026-05-31T11:37:20+00:00

I have a MessageBox in C# like so: MessageBox.Show(Message Here, Title Here, MessageBoxButtons.OK, MessageBoxIcon.Error);

  • 0

I have a MessageBox in C# like so:

MessageBox.Show("Message Here", "Title Here", MessageBoxButtons.OK, MessageBoxIcon.Error);

Under my Message and Title I have the option in ReSharper to Move to Resource and it wants to move these values to the Resources.resx file and then just refer to them in my MessageBox.

Is this overkill, not what this feature is really for or a good idea?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T11:37:21+00:00Added an answer on May 31, 2026 at 11:37 am

    I would say it is not overkill. Even if you are 100% certain (can you really be?) that you never need to provide your application in a different language, it makes the code much more readable, if it is not “littered” with strings/messages.

    Personally, I found out that I started writing much better (error) messages, once I moved all of them to resources. Before that I was trying too hard to make them “look nice” in the code, than to provide a really meaningful message.

    Of course, there are also drawbacks. While navigation usually doesn’t suffer (ReSharper’s “Go To Definition” works equally well with string resources), you don’t get checking of string.Format parameters. Again, for me that was worth the price of having (arguably cleaner code and better messages). YMMV.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an MDI application. When I show a message box using MessageBox.Show(), the
I have some code that popups a message box: MessageBox.Show(this, You have not inputted
I know I can use something like MessageBox.Show(some error) but I'm talking about an
Is there any way to have a default MessageBox.Show() caption? Let says I would
I have a file called hellowf.cs class MyFirstApp { static void Main() { System.Windows.Forms.MessageBox.Show(Hello,
I have been using win32api.MessageBox to do alerts, and this works for apps running
I have been trying to implement Win32's MessageBox using GTK. The app uses SDL/OpenGL,
I have the following unmanaged C++ code: MessageBox( NULL, strMessage, Cool Product, MB_RETRYCANCEL |
I have this annoying method which pop up a MessageBox. So when I try
I have a message box with 3 buttons: Yes, No, Help: var result =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.