【发布时间】:2023-03-09 11:20:01
【问题描述】:
我在 VB 中验证一个 TextBox 的 KeyPress 事件。
VB.Net
If InStr("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`~!@#$%^&*()_+|\[]{};:<>/?,.'" & """" & Chr(8), Chr(KeyAscii)) = 0 Then KeyAscii = 0
它在 C# 中的等价物是什么? 谢谢。
【问题讨论】:
-
在谷歌中输入“vb.net to c# convertor”...
-
试试看你会看到bit.ly/JJWpR9