I try to avoid user from using space bar when typing the text in the textbox because I don't want to allow empty space being input in the textbox. How to do that?
If InStr(TxtKrigRasterWorkspace.Text, " ") > 0 Then
Printable View
I try to avoid user from using space bar when typing the text in the textbox because I don't want to allow empty space being input in the textbox. How to do that?
If InStr(TxtKrigRasterWorkspace.Text, " ") > 0 Then
vb Code:
Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii = 32 Then KeyAscii = 0 End Sub
try This !!
vb Code:
Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii = 32 Then KeyAscii = 0 End If End Sub
Thank you Deepak Sakpal and RAJ :wave: