Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在研究如何将命令提示符窗口嵌入到 WinForm 中。
我从许多使用pinvoke的示例中都可以使用它,但我希望能够将命令提示符窗口锁定在 end_user 无法移动的表单内的严格位置。
这可能吗?
这样做的原因是因为我们在大型网络上使用远程工具,您可以在会话中同时打开许多这些工具。我想尽可能地将它们全部集中到一个空间中。
谢谢
如果您想要的只是一个干净的界面,您可以在表单中使用几个文本框。在其中之一中,用户输入命令。然后将这些命令传递给 shell。第二个文本框是一个多行文本框,您可以在其中附加 shell 响应传递的命令的内容。通过这种方式,您可以更好地控制图形布局。