If e.KeyChar = CChar(ChrW(Keys.Back)) Or e.KeyChar = CChar(".") Then
e.Handled = False
Else
e.Handled = True....
i want explanations for the above code..i know this code for validate the textbox in vb.net..
but i can't understand the use of CChar,ChrW,keys.back...
so telll me wht is use of CChar,ChrW,Keys.back>
Munir ShaikhPosted Aug 27, 2007, 4:23 AM
Here is the list of conversion functions which we can use in VB .NET. These are also called as CType functions
CBool - use this function to convert to Bool data type
CByte - use this function to convert to Byte data type
CChar - use this function to convert to Char data type
CDate - use this function to convert to Date type
CDbl - use this function to convert to Double data type
CDec - use this function to convert to Decimal data type
CInt - use this function to convert to Integer data type
CLng - use this function to convert to Long data type
CObj - use this function to convert to Object type
CShort - use this function to convert to Short data type
CSng - use this function to convert to Single data type
CString - use this function to convert to String data type
Regards,
>>Munnamax