'宣言 Public Property FormatProvider As IFormatProvider
public IFormatProvider FormatProvider {get; set;}
Imports Infragistics.Win Imports Infragistics.Win.UltraWinEditors Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim provider As IFormatProvider = System.Globalization.CultureInfo.CreateSpecificCulture("ja-JP") Me.UltraDateTimeEditor1.FormatProvider = provider Me.UltraNumericEditor1.FormatProvider = provider Me.UltraCurrencyEditor1.FormatProvider = provider End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinEditors; private void button1_Click(object sender, System.EventArgs e) { IFormatProvider provider = System.Globalization.CultureInfo.CreateSpecificCulture( "ja-JP" ); this.ultraDateTimeEditor1.FormatProvider = provider; this.ultraNumericEditor1.FormatProvider = provider; this.ultraCurrencyEditor1.FormatProvider = provider; }