I was told that this would work to kill the processing of a tab key when it is pressed:

private sub text1_KeyDown (shift as integer, keycode as integer)
if keycode = 9 then 'tab key
keycode = 0
end if
end sub

It does not work however. Is there any way to kill it without sending a backspace or anything like that? I'm trying to make my tabs in a multiline text box 4 spaces instead of 8, but the tab is still sent after I send the four spaces. Any help will be rewarded with profuse thanks.