How to uppercase the first character of each word using a regex in VB.NET?

前端 未结 9 1485
無奈伤痛
無奈伤痛 2020-12-06 19:19

Is it possible to uppercase the first character of each word using regex?

I\'m going to be using this in VB.net (SSIS)

9条回答
  •  情歌与酒
    2020-12-06 19:32

    Do this on key press event of your text box.

    If e.KeyChar <> ChrW(Keys.Back) Then
                If txtEname.Text = "" Then
                    e.KeyChar = UCase(e.KeyChar)
                End If
    
    
            End If
    

提交回复
热议问题