Tag: c#输入

如何添加对Microsoft.VisualBasic.dll的引用?

using Microsoft.VisualBasic; Microsoft.VisualBasic.Interaction.InputBox(“Favourite RPG?”, “Game”, “Cool!”); 所以这样做基本上是问用户他们最喜欢的RPG。 然后它显示默认值。 我知道这是一个小例子,但我的程序不会运行,因为我收到此错误: The type or namespace name ‘Interaction’ does not exist in the namespace ‘Microsoft.VisualBasic’ (are you missing an assembly reference?) 最初我在这里发现了这个