Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pasting into INPUTBOX

Status
Not open for further replies.

StewartUK

Programmer
Feb 19, 2001
860
GB
When working in the IDE, I can use Ctrl+V to paste something into the textbox on an INPUTBOX.

When I'm in my app, I can't.

Has anyone else found this to be the case? Is there a solution?

Thanks,

Stewart
 
Just a SWAG, but do you have menu with Copy, Paste, etc. defined in your application? You don't have to actually activate it.
 
Stewart,

Markros is right. If you create a menu based on the built-in Edit menu, then launch it within your app, you should get the full clipboard functionality. The menu doesn't have to be visible.

An easy way to create the menu is to go to the menu designer, create an Edit pad, click Insert Bar, then select each of the edit menu items in turn (Select All, Paste, etc).

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
My apologies, I should have said that I can use Ctrl+V in my app with textboxes, edit boxes etc etc and it works (even without the corresponding menu item). Just not in an INPUTBOX.

Any further inspiration?

Thanks,

Stewart
 
Stewart,

Actually, your question was correct. It was me who didn't see the mention of the Inputbox.

That said, I think the answer still stands. I've just tested it by adding an Inputbox to my application, and Ctrl+V works fine (as do the other clipboard key combos).

Sorry if this is stating the obvious, but are sure the clipboard contains text?

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Hmm, bizarre though it sounds, I must have set something to stop it working with the INPUTBOX.

Made up my own version now :)

Thanks,

Stewart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top