Protected Overrides Sub OnInitialized(ByVal e As EventArgs) MyBase.OnInitialized(e) Me.textEditor1.ValueType = GetType(Decimal) Me.textEditor1.Format = "C" Me.textEditor1.FormatProvider = New System.Globalization.CultureInfo("fr-FR") Me.textEditor1.Value = 10 Debug.WriteLine("Text = " & Me.textEditor1.DisplayText) End Sub
protected override void OnInitialized( EventArgs e ) { base.OnInitialized( e ); this.textEditor1.ValueType = typeof( Decimal ); this.textEditor1.Format = "C"; this.textEditor1.FormatProvider = new System.Globalization.CultureInfo( "fr-FR" ); this.textEditor1.Value = 10; Debug.WriteLine( "Text = " + this.textEditor1.DisplayText ); }