pls give some help on this topic
I am using &h with the first textbox like autonumber we use for increment the employee no in any company in which they use E001,E002...
I am want to use &h in the palce of E0 ,boz i m sending this value with textbox to the serial port my code is working but when i click on send button &h appears on the text box that which i dont want to show the user that we are using this kind of implementation in his front hand .How can i avoid this,can any body help me out .
pls rply ur answer will apprieciated .
thank u.
My code as follows :
Public Sub Function1()
str = Text1.Text
'str = str + 1
If str > 1 And str <= 9 Then
str = "&h6" & str
Else
If str > 9 And str <= 99 Then
str = "&h" & str
Else
If str > 99 And str <= 999 Then
str = "&" & str
End If
End If
End If
End Sub
calling this function in Command1
call function1
text1.text=str
But when user enter any value in the text box and then click's then &h appear in the text box .This appearance of &h in the text box Should be hidden ,that it should not visible to the user when user clicks Command1.
Thank u pls reply .if soome confusion then pls asked.