使用RichTextBox作为命令提示符 [英] Using the RichTextBox as a command prompt

查看:118
本文介绍了使用RichTextBox作为命令提示符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用RichTextBox作为我的应用程序的命令提示符.在运行时,我想从RichTextBox中获取最后一行.我该怎么办?

在此先谢谢您.

I want to use a RichTextBox as a command prompt for my application. During runtime I want to get the last line from the RichTextBox. How can I do that?

Thanks in advance.

推荐答案

您应检查给定的链接以获取答案

命令提示符控制 [
you should check given link to get your answer

Command Prompt Control[^]


string lastLine = myRichTextBox.Lines.Length == 0 ? string.Empty : myRichTextBox.Lines[myRichTextBox.Lines.Length - 1];


这篇关于使用RichTextBox作为命令提示符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆