[Gtk-sharp-list] Format SpinButton

Jose A. Salvador Vanaclocha joansava at gmail.com
Wed Mar 26 18:23:13 UTC 2014


Hi,

I've been trying to format a double number within a SpinButton.

Given a double var as 12345.12345

I want to get 12.345,12345

I've probe a lot of code combinations. This one is the last I'm working on:

spinbutton.Output += delegate(object o, OutputArgs args) {
	spinbutton.Text = spinbutton.Value.ToString("#,##0.00000");
	args.RetVal = 1;
};

with no succed :(

Anyone can put me on the right way??

Thanks.

Greats.
-- 
José Salvador
@josesalvadorvan


More information about the Gtk-sharp-list mailing list