G
Guest
VB2005
i need to implement cut/copy/paste as menu options
using th clipboard is ok, that works however how do i find the active
control and assuming it is a text box the portion of text selected?
I can not use Form.ActiveControl as that may be a user control which
contains the active TextBox
the ony way i can see is to iterate through the ActiveControl properties
chaining down until i find a control that makes sense eg textbox, but this
seems very long winded
this must be easy - i just cant see it!
i need to implement cut/copy/paste as menu options
using th clipboard is ok, that works however how do i find the active
control and assuming it is a text box the portion of text selected?
I can not use Form.ActiveControl as that may be a user control which
contains the active TextBox
the ony way i can see is to iterate through the ActiveControl properties
chaining down until i find a control that makes sense eg textbox, but this
seems very long winded
this must be easy - i just cant see it!