sending a backspace to a textbox -
Hello
I was trying to send a backspace
can i do it using sendkey
something like sendkey asicc_value(8) since ascii value 8 is backspace?
sending a backspace to a textbox -
Hello
I was trying to send a backspace
can i do it using sendkey
something like sendkey asicc_value(8) since ascii value 8 is backspace?
Working with textbox -
Hello,
Just a small problem w.r.t TextBox.
1. Going to the end of text of textbox
On the click of CommandButton, I want to place my cursor to
the end of the text of textbox. e.g. if the text of textbox
is "Hello world", I want to place my cursoe after the alphabet
Inserting spaces in text..... -
I have 2 labels, 'Space' & 'Backspace'
I want to drag and drop these into a textbox so that they act like the space bar and backspace button respectively.
I got the dragdrop thing sussed but can't figure how to put spaces or backspace.....
Help greatly appreciated
cheers
Textbox allow delete only -
I'm quite new to VB so please excuse this question.
I have a textbox on a form. Users may access the textbox and delete what's in it (by hitting backspace / delete) but may not edit the field otherwise.
Right now I check the key in the keypress event. If it isn't backspace or d
Backspace button on form -
How would I code a backspace button on form. For example, if I have text in a textbox and want to backspace from the cursor location.
Sounds so simple. Is it?
Thanks!
[2008] backspace -
hey how can i send a enter or backspace or tab (ex.) with just code
....like so i could click a button and send a backspace or enter to a textbox with text in it instead of using the key on the keyboard.
thanks
[2005] backspace btn -
hi
what code should i write to create a backspace button for a textbox.
i ll glad if anyone can help
thx
BACKSPACE Pressed -
Hi everybody!! I am wondering whether there's a way to "capture" the backspace key. For example, is there any way to detect when the Backspace key is pressed without any textbox_Keypress event. I just don't want to be setting the focus (with a timer) to one Textbox to capture
TextBox control - - Allowing Backspace and "." -
Ok, this may be simple but I can't figure it out.
What is the Ascii codes for backspace and the period?
Right now, I'm only allow for numbers, however I would like the user to be
able to backspace and also enter the period (for numbers like.35 or 1.34)
I don't know the ascii
sending backspace to erase a character -
iam using to postmessage api with vbkeyback to erase the charactes typed and post some other character in my local language software.
PostMessage(wndHndl, WM_CHAR, Asc(Chr(8)), Keybrd_Delay)
the problem is i can't send backspace to all windows applications. some applications li
Removing the 'BackSpace' characters.. Believe me I'm lost... -
Ok, quick and simple. I created a TELNET server, and it parses the data as it comes in. It waits for the client to hit enter, thus sending a vbCrLf to the server, and that signals to parse/process the data... Anyways, when the client presses [Backspace] it sends the backspace character
disable backspace after a certain length -
in my textbox.. when the length of the text inside is one
i want to disabloe the backspace button only!
how do i do it?
Backspace in Text boxes -
I was just wondering why the Delete key (DEL) works in text boxes...... but the Backspace key does not..
Is there anyway to enable the backspace key in textboxes, or make it work?
I don't see a backspace key reference on the ASCII chart I have..
Thanks for any info
backspace textbox(resolved) -
hello everyone
i have a string which i want one character removed at a time as with a backspace button ive done searchs for trim, endswith and cant find anything in vb .net that is what i need thanks john
the code 1st reply worked fine thankyou john (carnifix)
How to read key Backspace -
Is there a way to disable the Backspace? I am a simple
html and asp script, but there are fields that I would like to
disable. I looked at the Onkeypress but still did not give
me and/or work with the Backspace at all.
Thanks in advance for any help.
Backspace 1 time in a textbox -
How can you automatic backspace after pressing the letter "j"
Example
---
Haha this is lame...
Can you press j000
And here the text continues..
---
000 = the cursor
after you hit the "j" button then automaticly remove it..????
how to check the position of cursor in a string in a textbox -
hi,
if i have a string say "elephant" in a textbox, and the cursor is between the letters "p" and "h", how do i write a code to delete the letter "p" which is to the left of the cursor (same effect when pressing the backspace button)?
or is the
Keyboard Hook Problem -
hi,
i hv created a function to trap the pressing of the BackSpace key by a
user.Everyhting is working fine,except that my function is being called
twice.Once when the BackSpace key is PRESSED and the next when it is
RELEASED.
I dont want to call my function when the BackSpa
Enable backspace in True DBGrid(6.0) using VB6 -
I have a True DBGrid(6.0) on a form in a VB6 project and it doesn't respond when I click backspace. How can I enable the user to use backspace?
Example:
I type in "12345" in the field but then I click backspace to remove the '5' and nothing happens.
backspace and delete key -
I want to exchange the functioning of backspace and delete key e-g if i press backspace it should delete the character on the right side of cursor and vicee versa for delete key. How can i implement this in rtb?
Backspace in RTF -
I would like to know how to perform a backspace in my program using visual basic 6. For example, if the user keyed in a "~", I would perform a backspace to remove this particular character.
Please note that I had try to use LEFT, MID and some other function that can achieve
Label inside a Textbox or RichTextBox -
Hello everyone..
Im trying to place labels inside a textbox(or richtextbox) dynamically whenever the user right clicks on a paticular place.I want to dynamically add the label where the user right clicks.And i want the label to move if he places the cursor behind the label and presses
Entering alphabets only -
This should be easy, but I am having a little problem with it.
I would like to limit entry a textbox to alphabets and the Backspace key only. How do I do this?
I am trying this code, but it's not working... the Backspace key will not work
If (KeyAscii > 96 And KeyAscii < 1
backspace a textbox -
if you have a textbox and a command button, called cmdBackspace, what would be the code so when they click cmdbackspace, it deletes the last character out of the textbox?
Question about restriction -
How do you make it so that you can type backspace in a textbox after you've limited the textbox to only numbers.
Thanks
Anyone know how the DEL could be captured -
in a textbox.. is it not possible to capture the DEL button when pressed? and do something with it.... as i couldint get it to work. It works fine for the Backspace though.
Private Sub Text1_KeyPress(KeyAscii As Integer)
if KeyAScii = 8 then 'this is for backspace..which works)
Deleting text in a textbox -
I have a virtual on screen keyboard, and one of the buttons is a backspace.
What command would I use to delete the last letter of the textbox?
Backspace function (again) -
Me again with new old question...
last time I wanted the code for a backspace function.
I got this one:
-----------------------------------------
thetext=left(thetext,len(thetext)-1)
-----------------------------------------
It worked perfecty on a textbox, but not on a &qu
overwrite character in text box -
Sirs,
I have 4 text boxes each with One character input.
I have entered the characters for the first 3 textboxes( through keyboard).
Now my focus is on the fourth textbox.
Now if I shift my focus to the 1st textbox and
try to enter a character( from keyboard) it wont a
Subtract some letters from a textbox -
Hey guys i have a textbox that has a word in it. And when that word is typed in I press a button to put it in another textbox caleld text2. But I want the same word that was in text1, but ALWAYS with the last 3 characters removed. Like it would backspace 3 times in texbox2.
Is there
copy n paste textbox -
hey, i need to make a text box so you cant edit it, but can only copy from it.
If Char.IsControl(e.KeyChar) Then
Return
Else
e.Handled = True
that is my code, but the problem is you can still backspace with that code.....anyway to get rid of
Few Text Box Questions (lil advanced) -
here they are:
1. How do I make it so that the user can not click on the text box (make the textbox off limits, not just hide the mouse)
2. How do I not allow backspace, if pressing backspace will cause the user to goto the previous line
3. How do I disable Shift, the arrow ke
How can I disable the user backspacing and deleting 1st character in a textbox -
Hi Guys,
I am using the trick that enables me to place a textbox over an MSFlexgric cell so I can create the impression that the user is entering information into the grid and on leavecell event I hide the textbox and assign it's text to the grid cell.
However I had the following
calc backspace - need help -
I am trying to write a basic calculator program. I need to know on command.click what to use for a backspace in a display instead of clearing the whole thing.
Trapping BackSpace,Enter Keys in Class -
hi.
is there any way to trap the backspace,enter keys in a class module????
i hv created a ActiveX DLL where,in one of the sub of the class i need to know whether the user has pressed the backspace or enter keys.......
i dont want to use the Private Sub Text1_KeyPress(KeyAscii A
[2008] Backspace in Code -
Lets sat we have a textbox with text (Textbox1.Text)
if we click backspace the last character will be removed
but if the last character was a New Line (Enter), 2 characters would be removed...
I need help puting this in code
Code:
Private Sub BackSpace_Click(ByVal sender A
Filtering a textbox for numbers and the minus key -
I have a simple textbox that I only want to allow numbers, the backspace key, and the minus (subtract) key in. I thought this would work, but it still won't allow the backspace key?
Code:
Private Sub txtSKU_KeyPress(KeyAscii As Integer)
'only allow numbers to be entered
TextBox Doubt -
Hi,
how to set -ve sign permanently to a textbox, so that on pressing BackSpace the Negative sign doesn't get erased.
Telnet Backspace -
Perhaps this is a hard question.
I'm making my own telnet server.
I have to print everything the user types for example:
User is typing: Help
Then my VB app has to print Help back to make it show up in the telnet-client.
But the problem occurs when users are trying to us
Make a key do an other action key -
I just want to know if I can do in a textbox/rtb something who will change the action of a key.
Exemple : I want to change the "backSpace" button in the keyboard to the action of the "Del" key.
If I press backspace, the action who are supposed to delete the