Solved

Window API Cut,Copy,Paste,Delete,Undo

Posted on 2004-09-01
6
482 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
  • 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now