A question arose recently on the newsgroup of how to automatically capitalise the first letter of a word in a text box, e.g. by activating the shift key on the soft keyboard. Since there is no API for the SIP to do this the workaround is to simulate a mouse click over the position of the Shift key in the soft keyboard.
An alternative method is to handle the TextChanged event on the TextBox and add some logic to capitalise words as the text is entered. The advantage here is that it is not dependent on a specific SIP being in use:-
private
{
newText[iChar] = Char.ToUpper(oldText[iChar]);
makeUpper =
}
newText[iChar] = oldText[iChar];
textBox1.Text =
textBox1.SelectionStart = textBox1.Text.Length;
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.