Hi folks,

I've got some trouble with my spin buttons: I would like to make them display 
fixed-comma numbers...and it isn't working! Instead of the number itself, my 
SpinButton always displays «0.00»...and that's it. Here is the code:

        object cell;

        SpinButton s = new SpinButton(0, 100000.0, 1.0);
        s.Numeric = true;
        s.UpdatePolicy = SpinButtonUpdatePolicy.Always;
        s.Digits = 2;
        s.Text = cell.ToString();

When I fill «cell» with some Decimal value, say (Decimal) 13.5, and run the 
code mentioned above, the spin button still displays «0.0». Why? Thank you 
for your comments.

NB: I've also tried out the «value» property of the spin button, but the 
result is exactly the same. :-(

Regards
Jacek Rużyczka

Attachment: pgpDCuyDigcP8.pgp
Description: PGP signature

_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to