I have a DGV and a TextBox into my form.
The TextBox displays the "DGV.rows.count" for example as "3" but i want to show me "00003". How can i format this textbox to diplay data like "000XX" ?
Thanks in advice!
Printable View
I have a DGV and a TextBox into my form.
The TextBox displays the "DGV.rows.count" for example as "3" but i want to show me "00003". How can i format this textbox to diplay data like "000XX" ?
Thanks in advice!
Code:Dim myNumber As Integer = 3
Dim myFormattedNumber As String = myNumber.ToString("00000")
I've tried like this but nothin' happends ....
It shows me "3" simple. It's something wrong in that ?!Code:Dim numar As Integer = Me.DataGridView1.Rows.Count
Dim nr_cm As String = numar.ToString("00000")
Me.txt_nr_cm.Text = nr_cm
Sorry it's working that way thanks alot wild_bill, yu're the man! ;)