In my window application i want to format A1 as A0001. How to do that?
Dim ID As String = "A1" Dim a As String = ID.Substring(0, 1) Dim num As String = ID.Substring(1, 1) [EDIT] Dim K AS Integer = Integer.Parse(num) Dim formatVal As String = String.Format("{0:0000}", K) [/EDIT] Dim final As String = a + formatVal
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)