Quantcast
Channel: Our ComponentOne » All Posts
Viewing all articles
Browse latest Browse all 14170

OutputFormat not working on dynamic textbox

$
0
0

Hi,

I have a bunch of Textbox i am creating on the fly in Report_Start event. While other properties that I assign seems to be working OutputFormat is not. The actual value is of the form 0.2345333453223 and I am trying to keep it to 4 decimal places so I’m using "#.0000;-#.0000″ but this is not working.

TextBox tb = new TextBox();
tb.Font = new Font(tb.Font.FontFamily, 6f);
tb.OutputFormat = tb.Value.ToString() == "1″ ? "#" : "#0.0000;-#0.0000″;

Please advise.

Thanks.


Viewing all articles
Browse latest Browse all 14170

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>