MOTHERFUCKERS , DO YOU KNOW WHAT IS "BACKSPACE" ? I WANT THE CODE OF BACKSPACE TO KEYBOARD VIRTUAL , TO VISUAL BASIC , I TRIE THE SHIT THAT YOU PUT ON THIS SITE , YOU MOTHER IN 4.
'I have used the following code' 'which works perfectly in my application ' 'Thank you for giving me the insight of the Mid function'
If TextBox1.Text.Length > 1 Then TextBox1.Text=Mid(TextBox1.Text,1, Len(TextBox1.Text)-1) ElseIf TextBox1.Text.Length = 1 Then TextBox1.Text = 0 Else Exit Sub End If
I have used this code working well but problem is here when we two textboxes one for English and other urdu and button from arabic script urdu language character having "Chy" character equil in English "ch" I face problem here
I have used this code working well but problem is here when we two textboxes one for English and other urdu and button from arabic script urdu language character having "Chy" character equil in English "ch" I face problem here
If Len(TextBox1.Text) > 1 Then TextBox1.Text = Left(TextBox1.Text, Len(TextBox1.Text) - 1) ElseIf Len(TextBox1.Text) = 1 Then TextBox1.Text = 0 Else Exit Sub End If
doesn't work, it deletes the number but when I click a new number to replace, it just comes back. Ex. 987, 'deletes 7 Answer.Text = 98 'Adds 6 Answer.Text = 9876
The Backspace button involves Mid function as
ReplyDelete'If we have no characters in textbox then it should not execute the code
If Len(Text1.Text) = 0 Then Exit Sub
' Now remove the last character from the textbox
Text1.Text = Mid(Text1.Text, 1, Len(Text1.Text) - 1)
Good job.
DeleteUff finally something dat works,,,thanks
DeleteThank's finally I find something that is working :D
DeleteThanks alot!
DeleteHow could I code simply for backspace
DeleteMOTHERFUCKERS , DO YOU KNOW WHAT IS "BACKSPACE" ? I WANT THE CODE OF BACKSPACE TO KEYBOARD VIRTUAL , TO VISUAL BASIC , I TRIE THE SHIT THAT YOU PUT ON THIS SITE , YOU MOTHER IN 4.
ReplyDeleteThanks, very helpful. Works perfectly. (Remember to replace where it says Text1 to whatever the name of your output textbox is.
ReplyDeleteawesum...
ReplyDeleteThanks! :D It helps
ReplyDeletewhat about equal sign of calculator
ReplyDeletethanx
ReplyDelete'I have used the following code'
ReplyDelete'which works perfectly in my application '
'Thank you for giving me the insight of the Mid function'
If TextBox1.Text.Length > 1 Then
TextBox1.Text=Mid(TextBox1.Text,1, Len(TextBox1.Text)-1)
ElseIf TextBox1.Text.Length = 1 Then
TextBox1.Text = 0
Else
Exit Sub
End If
If display.Text.Length = 1 Then
ReplyDeletedisplay.Text = Mid(display.Text, 1, Len(display.Text) - 1)
display.Text = 0
Else
display.Text = Mid(display.Text, 1, Len(display.Text) - 1)
End If
.Text.Length is invalid qualifier
DeletePrivate Sub btnBackSpace_Click_1(sender As Object, e As EventArgs) Handles btnBackSpace.Click
ReplyDelete'The procedure works as a backspace for the
'cash box
If txtCash.Text < " " Then
txtCash.Text = Mid(txtCash.Text, 1, Len(txtCash.Text) - 1 + 1)
Else
txtCash.Text = Mid(txtCash.Text, 1, Len(txtCash.Text) - 1)
End If
End Sub
-1 +1 is just as useless.....
DeleteI have used this code working well but problem is here when we two textboxes one for English and other urdu and button from arabic script urdu language character having "Chy" character equil in English "ch" I face problem here
DeleteI have used this code working well but problem is here when we two textboxes one for English and other urdu and button from arabic script urdu language character having "Chy" character equil in English "ch" I face problem here
DeleteIf Len(TextBox1.Text) > 1 Then
ReplyDeleteTextBox1.Text = Left(TextBox1.Text, Len(TextBox1.Text) - 1)
ElseIf Len(TextBox1.Text) = 1 Then
TextBox1.Text = 0
Else
Exit Sub
End If
aw
ReplyDeleteDo this it will guarenteed work:
ReplyDeleteIf Len(TextBox1.Text) <> 0 Then
TextBox1.Text = Mid(TextBox1.Text, 1, Len(TextBox1.Text) - 1)
End If
tnx it works
Deletedoesn't work, it deletes the number but when I click a new number to replace, it just comes back.
DeleteEx.
987, 'deletes 7
Answer.Text = 98
'Adds 6
Answer.Text = 9876
e
ReplyDelete