掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
フォームの数値をカンマ区切りにするには? (ID:124311)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
こっちの方が良いかな。 Dim s As String = textbox.Text Static bs As String = "" s = s.Replace(",", "") Try s = String.Format("{0:#,##0}", Convert.ToInt32(s)) bs = s textbox.Text = s textbox.SelectionStart = textbox.Text.Length Catch If s.Length <> 0 Then textbox.Text = bs Else textbox.Text = "" End If End Try
←解決時は質問者本人がここをチェックしてください。
戻る
掲示板システム
Copyright 2020 Takeshi Okamoto All Rights Reserved.