C#InputBox与控制台应用程序一起使用 [英] C# InputBox to use with a Console Application

查看:82
本文介绍了C#InputBox与控制台应用程序一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

任何人都知道可以与Console应用程序一起使用以练习C#编码的InputBox吗?

Anyone know of an InputBox that can be used with a Console application to practice coding C#?

我正在寻找一个类似于VB.Net中的InputBox(或Java showInputDialog),它类似于输出MsgBox,在其中可以练习使用控制台编写代码,使用InputBox,然后使用C#Msgbox()获取输出结果.

I am looking for an InputBox, similar to the one in VB.Net, (or the Java showInputDialog) which would be analogous to an output MsgBox, where one could practice writing code using the console, compile, input variables with the InputBox,  and get the output results using the C# Msgbox( ).

在这种情况下,是否可以使用其他.Net Framework语言之一中的InputBox?

Or could an InputBox, from one of the other .Net Framework languages be usable in such a situation?

谢谢.

推荐答案

您可以添加对Microsoft.VisualBasic程序集的引用,然后使用方法交互 .InputBox()
You can add a reference to Microsoft.VisualBasic assembly and then use method Microsoft.VisualBasic.Interaction.InputBox()


这篇关于C#InputBox与控制台应用程序一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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