Solved

Window API Cut,Copy,Paste,Delete,Undo

Posted on 2004-09-01
6
503 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 20 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

695 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