Hello to all, I have create simple database with two fields. One is ID (int), and second is Text (text). But problem is when I am trying to type this letters in Text filed:
Ć (C with acute); ć (small c with acute); Č (C with caron); č (small c with caron) - When I click Save button, it change it to C or c without acute or caron. So I think, that problem is in ASCII code, that vb.net for text type in database do not have declared this letters. But I have found their ASCII code:
Ć (C with acute) 262
ć (C with acute) 263
Č (C with caron) 268
č (C with caron) 269
So I have try this code:
But problem is still there (code have no effect), in database in field Text it change it to C or c.
Any similar experience... realy thanks for help...
Ć (C with acute); ć (small c with acute); Č (C with caron); č (small c with caron) - When I click Save button, it change it to C or c without acute or caron. So I think, that problem is in ASCII code, that vb.net for text type in database do not have declared this letters. But I have found their ASCII code:
Ć (C with acute) 262
ć (C with acute) 263
Č (C with caron) 268
č (C with caron) 269
So I have try this code:
Code:
Private Sub TextTextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextTextBox.KeyPress
If (Asc(e.KeyChar) = 262 Or Asc(e.KeyChar) = 263 Or Asc(e.KeyChar) = 268 Or Asc(e.KeyChar) = 269) Then
e.Handled = True
End If
End SubAny similar experience... realy thanks for help...