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 6554897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:45:17+00:00 2026-05-25T12:45:17+00:00

I have the following code, txtCaseworkCost.Text = _CaseworkCost.ToString(C) For some reason, the output in

  • 0

I have the following code,

        txtCaseworkCost.Text = _CaseworkCost.ToString("C")

For some reason, the output in the text boxes looks like this,

enter image description here

With some strange symbol instead of a dollar sign. The local for the computer is the United States so it should be displaying the $ sign.

The control is being used in an AutoCAD plugin, where AutoCAD loads the .Net dll. The strange part, If I use this same control in a windows form application, it works fine with the correct symbols. The incorrect symbol only appears when the code is loaded from the other application.

Is there any workaround for this? I have no control over how AutoCAD loads the dll, so I need to somehow correct the currency symbol from my code. Also, this error also appears in the reporting tool we use, so I am looking for a solution other than manually inserting the symbol.

  • 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-25T12:45:18+00:00Added an answer on May 25, 2026 at 12:45 pm

    You cannot control the Thread.CurrentCulture in a plug-in scenario. The thread is initialized and configured by AutoCAD which may well have changed its default language for its own purposes. SetThreadLocale() in the winapi.

    So if you want dollars then make sure to use the overrides that accept an IFormatProvider argument and pass the Culture.NumberFormatInfo you want.

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

Sidebar

Related Questions

I have following code: string date = 13.04.2012; string date2 = (DateTime.Parse(date).AddDays(1)).ToString(); This is
I have following code to set the text box values on page load. protected
I have following code function Model(onChanged) { this.array = new Array(); this.onChanged = onChanged;
I have following code: canvas=new MembershipFunctionComponent(functions); canvas.setPreferredSize(new Dimension((int)this.getWidth(), (int)this.getHeight())); canvas.addMouseListener(canvas); pane.add(canvas); MembsershipFunctionComponent extends JComponent.
I have following code and it returns false for @B LIKE @A comparison in
I have following code in a html form <select name=category class=input onchange=ShowTB(this,'suggest');> <option value=0
I have following code, after five tries (wrong words like dfasfasfb) the application stops.
I have following code in php: $mode = $this->input->get('mode'); // may return string or
I have following code #file 1 a.pm package a; @Export=(test); print test; #hashing this
I have following code: $fh=fopen($api,r); $theData = fgets($fh); echo $theData; This throws the error

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.