Solved

keyboard press simulation ?

Posted on 2006-11-19
1
334 Views
Last Modified: 2010-05-18
I want my program to simulate the keypress CTRL + C and CTRL + V .
0
Comment
Question by:waddhah
1 Comment
 
LVL 16

Accepted Solution

by:
Hillwaaa earned 250 total points
Comment Utility
Hi waddhah,

How are you trying to use this?

If this for textboxes and the like? Most of the .Net controls support the "Select" and "Copy" and "Paste" functions which you can call instead of using Ctrl+C and Ctrl+V.

Alternatively, you can use the SendKeys functionality,

SendKeys.Send("^C") for Ctrl+C

Cheers!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
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 …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 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

11 Experts available now in Live!

Get 1:1 Help Now