开发者

How to remove - before the text -450

开发者 https://www.devze.com 2023-02-22 09:45 出处:网络
i have a textbox showing -450 as output but i want it displays out put as 450 by removing - from 45开发者_StackOverflow社区0 ....string text = TextBox.Text.Replace(\"-\", \"\");

i have a textbox showing -450 as output but i want it displays out put as 450 by removing - from 45开发者_StackOverflow社区0 ....


string text = TextBox.Text.Replace("-", "");

string text = TextBox.Text.TrimStart('-');

string text = TextBox.Text.Remove(0, 1);

0

精彩评论

暂无评论...
验证码 换一张
取 消