Can I get copy/paste functionality from a C# Console Window?(我可以从 C# 控制台窗口获得复制/粘贴功能吗?)
问题描述
我正在用 C# 开发一个控制台应用程序,并且想知道是否有一种方法可以将复制粘贴"或标记粘贴"功能添加到我的应用程序中,类似于或等同于标准 Windows 命令提示符.这是白痴还是简单的应用程序变量?
I am developing a console application in C#, and was wondering if there was a way to get the "copy-paste" or "mark-paste" functionality into my application, similar or identical to that of the standard Windows command prompt. Is this a wild goose chase or a simple application variable?
推荐答案
感谢 Sean 让我意识到这个问题完全是白痴.让我成为其他人的榜样,不要跳上结论的火车.
Thank you Sean for making me realize the complete idiocy of this question. Let me be an example to others to not jump on the conclusion train.
Sean 指出可以使用 cmd.exe 的内置功能完成复制粘贴",这让我认识到,是的,绝对是的,当您在 Windows 中运行命令行应用程序时,它已经具有此功能.
Sean pointed out that "copy-paste can be done using cmd.exe's built-in functionality", making me recognize that, yes, absolutely duh, when you run your command line application in Windows it already has this functionality available.
我错误地得出结论,因为我是通过 IDE 使用 DEBUG 执行进行所有初始测试,而 vshost 没有为您提供该功能.
I erred by jumping to conclusions, for I was doing all my initial testing with the DEBUG execution through the IDE, and vshost does not give you that functionality.
一个快速的不调试就开始"暴露了我的短视.
A quick "Start Without Debugging" revealed my short-sightedness.
这篇关于我可以从 C# 控制台窗口获得复制/粘贴功能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:我可以从 C# 控制台窗口获得复制/粘贴功能吗?
基础教程推荐
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
