I found a solution to my problem, here it is.
Hope this was of help to someoneCode:String myString = "ABCDEF"; myButton.Text = myString.Substring(2, 1); // myButton's text will be 'C' //If we develop this further we can have something like String myString = "ABCDEF"; Button[] myButtons = new Button[myString.Length]; for(int i = 0; i <= myString.Length; i++) { myButtons[i] = new Button(); myButtons[i].Text = myString.Substring(i, 1); //Within this loop we can programmatically add these buttons to our forms, etc. }![]()




Reply With Quote