PDA

View Full Version : VB Cut


xtremcoder
09-24-2003, 12:20 AM
here is the code I am using... i found it online, and it cuts alright, but when i go to paste it pastes the code i have, not what was supposed to be cut? however, if i copy, paste works fine :confused:

If TypeOf Screen.ActiveControl Is TextBox Then
Screen.ActiveControl.SelText = ""
ElseIf TypeOf Screen.ActiveControl Is ComboBox Then
Screen.ActiveControl.Text = ""
ElseIf TypeOf Screen.ActiveControl Is ListBox Then
Screen.ActiveControl.RemoveItem Screen.ActiveControl.ListIndex
ElseIf TypeOf Screen.ActiveControl Is PictureBox Then
Screen.ActiveControl.Picture = LoadPicture()
End If

Tiny Tim
09-24-2003, 07:32 AM
as in respect to what?

copy paste from internet explorer to your editor?

cut code from editor and paste back into editor?

clarify a bit please.

xtremcoder
09-24-2003, 11:57 AM
from one text box to another...