Robert3234

Hello all,
I've written essentially two version of the same application.In the first version, the textboxes allow users to paste text into them (via Ctrl + V). However, I've noticed that in the second version, for some reason, the textboxes don't allow the user to paste information into them.

I've written both using the same version of vb.net express, and all of the textboxes have the same preferences selected (to the best of my knowledge). In fact, I've coppied and pasted one of the working textboxes (one that allows pasting) into the second app, and it no logner accepts pasting.

Does anyone know what might cause the applications to act in this manner How can I change this!

Thanks so much for any input or ideas.
-Robert



Re: Visual Basic Express Edition pasting capability in textboxes seems variable, any ideas?

ahmedilyas

you wouldnt happen to be overriding key press events or something It shouldnt happen as the keyboard shortcuts are the same for any application regardless. Double check your original app and your new application




Re: Visual Basic Express Edition pasting capability in textboxes seems variable, any ideas?

spotty

I've not seen this before but is this behaviour only happening in this application on in a number of applications. Example if you create a new windows application - and drop a textbox on the form - is it reproducible.

The functionality of the textbox should be uniform across application unless you happen to be doing something specifically to override the default behaviour. This textbox isnt trying to do something like a numeric only textbox and your checking to see if the keypress is numeric but have forgotten to verify that you allow control characters as well.





Re: Visual Basic Express Edition pasting capability in textboxes seems variable, any ideas?

MS Johan Stenberg

How are you running your application Are they click-once deployed If so, is have you given the application right to access the clipboard You can change the settings by going to the properties->security tab and select the UIPermission and click on Properties...

There is also a ShortcutsEnabled property for the textbox that you may want to verify that it is set to True...

Best regards,
Johan Stenberg






Re: Visual Basic Express Edition pasting capability in textboxes seems variable, any ideas?

Robert3234

Sorry it's taken so long for me to get back, but I've tried all of your suggestions, and to no avail. I'm thinking it may have something to do with the objects being a) on a tabpage, or b) the form has a menustrip on it.

I've sort of given up on the pasting capability for this time... but if anyone else has any ideas, that'd be great

Thanks
-Robert





Re: Visual Basic Express Edition pasting capability in textboxes seems variable, any ideas?

Doug Kent

I am having the same problem. The textboxes are on a tabpage and i have a menustrip in the form. But I am using a C# Windows Forms application built with Visual Studio C# 2005.

If I delete the clipboard menu items in the Edit menu (like Copy, Cut and Paste) then the associated shortcut keys suddenly start working again. This article was helpful: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=175001&SiteID=1 .





Re: Visual Basic Express Edition pasting capability in textboxes seems variable, any ideas?

nobugz

What Shortcut key did you select for the Paste menu item Ctrl+V would be a common choice. With that, the TextBox will never see the Ctrl+V keystroke, it is consumed by the menu item first.





Re: Visual Basic Express Edition pasting capability in textboxes seems variable, any ideas?

Tall Dude

I can't quite nail this down, but it seems to

be related to the shortcut keys of the menustrip.

Try adding a shortcut key for all the menustrip items.