We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

CurrencyTextBox crashes application

Thread ID:

Created:

Updated:

Platform:

Replies:

69886 Nov 15,2007 11:56 AM Nov 15,2007 01:47 PM Windows Forms 1
loading
Tags: Tools
Christoph Gasser
Asked On November 15, 2007 11:56 AM

I have some currency text boxes in my form. Depending on the selection of a combo box (country selection) I'm assigning the corresponsing currency symbol to the currency text box.

this.myCurrencyTextBox.CurrencySymbol = "$";

Whenever I do that it crashes the application. In debug mode there is no output in visual studio. It just crashes and I have to stop debugging.

Any idea what that could be? Is it a problem for the control that I only change the symbol? Is it necessary to change the other values as well (culture, etc.)?

BR
Christoph


Christoph Gasser
Replied On November 15, 2007 01:47 PM

SOLVED: I did the databinding on the Text item istead of the BindableValue item.

So if you're using CurrencyTextBoxes in combination with databinding, take care that you're binding on "BindableValue".


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;