By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,290 Members | 1,263 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,290 IT Pros & Developers. It's quick & easy.

Trailing minus in display

P: n/a
Hello,

Is there a simple/standard way to display a negative number (integer in
this case) with a trailing minus sign? I've looked in help on
formatting, but I don't see a way to do it.

I'm actually on .NET Compact Framework, but this seemed more like a VB
question.
Thanks,
DaveO.

Feb 13 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a


You can try custom formats for the ToString() function.

e.g.
Dim num As Integer = -17
MessageBox.Show(num.ToString("00;00-"))
Check out the custom format strings on ToString() in the help for more
details

hth,
Alan.

Feb 13 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.