?
Solved

Window API Cut,Copy,Paste,Delete,Undo

Posted on 2004-09-01
6
Medium Priority
?
509 Views
Last Modified: 2008-02-01
how to use cut copy paste delete undo function using window api in vb.net
0
Comment
Question by:ahmadfuwad
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 4

Expert Comment

by:VIkasumit
ID: 11951227
Hi..

Can you please tell me why u need it..

OK..

If you need it in Text Fields (Textbox, etc) they have in built function for same and ..

If you want to read the Windows API than search for the Windows API call in Vb.net in MSDN
or
use this link
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcn7/html/vaconCallingWindowsAPIs.asp

VIkasumit
http://sumitonnet.20m.com
0
 
LVL 5

Expert Comment

by:TRUENEUTRAL
ID: 11952143
Yes, you need to be specific about where you want to cut,copy,paste.  The method of doing so will differ depending on what controls/what you are trying to copy.
0
 
LVL 4

Accepted Solution

by:
Daniellus83 earned 80 total points
ID: 11971016
ahmadfuwad,

It's quit easy... If you have a textbox or a Richtextbox you can use these commando's:

  (rich)textbox.copy
  (rich)textbox.cut
  (rich)textbox.paste
  (rich)textbox.undo

All the sections that are copied/pasted/... are put into clipboard (or retrieved from...). So for this you don't need clipboard !!

ONE REMARK!! >> if you try to do a paste, and there is currently a image stored on clipboard, then the paste will (as you will understand) not work in the textbox.

---------

if you want to use clipboard via API; use this solution I gave a few week ago, look here (maybe you need it):

  (look at the 12:00AM CEST)  http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB_DOT_NET/Q_21085056.html
  (even more advanced        )  http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB_DOT_NET/Q_21099763.html
   
0
 
LVL 4

Expert Comment

by:Daniellus83
ID: 11971023
sorry, but the sentence "...So for this you don't need clipboard !!..."  

must be : "...So for this you don't need Windows API !!..." ...
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question