|
-
Mar 7th, 2005, 02:18 AM
#1
Thread Starter
Lively Member
a delete escape character?
does any 1 know of an escae character ican use to simulate a delete key? i tried \127 & \008 but cant get either to work, i need somethihg i can use like \r\n for return and newline but to actually delete that space. Is there a better way to do this? thanx
-
Mar 7th, 2005, 03:50 AM
#2
Fanatic Member
Re: a delete escape character?
VB Code:
private void frmchild_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
{
if(e.KeyCode==Keys.Delete) MessageBox.Show("");
}
This one? If not, sorry.
-
Mar 7th, 2005, 03:55 AM
#3
Thread Starter
Lively Member
Re: a delete escape character?
i need an escape character, that i can place inside a string to manipulate text programmatically. like if you put \r\n inside a label.Text will enter a return character. its a C thing. thanx though
-
Mar 7th, 2005, 04:03 AM
#4
Fanatic Member
Re: a delete escape character?
Don't know if there's an escape character for delete but here's the list from Peter Burden's tutorial
VB Code:
Octal Hex Escape Input Name
000 00 Ctrl-@ Null - does nothing
001 01 Ctrl-A SOH
002 02 Ctrl-B STX
003 03 Ctrl-C ETX - Sometimes Break Program
004 04 Ctrl-D EOT - Sometimes End of File
005 05 Ctrl-E ENQ
006 06 Ctrl-F ACK
007 07 \a Ctrl-G BEL - Audible Signal
010 08 \b Ctrl-H BS - Backspace
011 09 \t Ctrl-I HT - TAB
012 0a \n Ctrl-J NL - Newline
013 0b \v Ctrl-K VT - Vertical TAB
014 0c \f Ctrl-L FF - New Page or Clear Screen
015 0d \r Ctrl-M CR - Carriage Return
016 0e Ctrl-N SO
017 0f Ctrl-O SI
020 10 Ctrl-P DLE
021 11 Ctrl-Q DC1 - Flow Control - On
022 12 Ctrl-R DC2
023 13 Ctrl-S DC3 - Flow Control - Off
024 14 Ctrl-T DC4
025 15 Ctrl-U NAK - Sometimes Line Delete
026 16 Ctrl-V SYN
027 17 Ctrl-W ETB
030 18 Ctrl-X CAN - Sometimes Line Delete
031 19 Ctrl-Y EM
032 1a Ctrl-Z SUB - Sometimes End of File
033 1b Ctrl-[ ESC - Often Escape for Screen Control
034 1c Ctrl-\ FS
035 1d Ctrl-] GS
036 1e Ctrl-^ RS
037 1f Ctrl-_ US
040 20 SP - Space - Hit the space bar
-
Mar 7th, 2005, 04:07 AM
#5
Thread Starter
Lively Member
Re: a delete escape character?
Yeah i tried backspace but word doesnt reconize it for what i need, so 127 and 177 were the ascii values that i tried earlier. would be nice for a \D but cant find it even tried simulating ^Del but nothing.
-
Mar 8th, 2005, 12:41 PM
#6
Frenzied Member
Re: a delete escape character?
Can you be more specific about what you are trying to accomplish? There may be a better solution for what you are trying to do just by using some of the methods in the string class.
-
Mar 10th, 2005, 02:23 AM
#7
Thread Starter
Lively Member
Re: a delete escape character?
i am adding a digital signature to a document using the word object and a bookmark, but some of those docs have an underline where the signature needs placed. so i was trying to delete the length of the signature from the document then place in the signature.
-
Mar 14th, 2005, 05:11 PM
#8
Frenzied Member
Re: a delete escape character?
Not sure if this helps, but you can use the Range object to delete text in Word (Set the range to the signature that you want to delete, and call the Delete method of the Range). There's an example here:
http://msdn.microsoft.com/library/de...WordObject.asp
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|