添加引用Microsoft.VisualBasic程序后无法得到输入框 [英] Cannot get InputBox after adding reference to Microsoft.VisualBasic

查看:798
本文介绍了添加引用Microsoft.VisualBasic程序后无法得到输入框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了什么,在这里 http://www.pcreview.co说。英国/论坛/线程1899493.php
,但在IntelliSense我只得到Microsoft.VisualBasic.VBCodeProvider ???



第1步:添加refernce Microsoft.VisualBasic程序



第二步:

 私人无效的button1_Click(对象发件人,EventArgs五)
{
字符串结果= Microsoft.VisualBasic.Interaction.InputBox(三K党,文本,,10,20);

MessageBox.Show(结果);
}


解决方案

第1步:检查您是否真的添加了参考; - )



Microsoft.VisualBasic.VBCodeProvider 位于系统.DLL ,这是每一个新项目中引用。在我看来,如果你不引用 Microsoft.VisualBasic.dll中的。


I did what is said here http://www.pcreview.co.uk/forums/thread-1899493.php but in intellisense I only get Microsoft.VisualBasic.VBCodeProvider ???

step 1: Add refernce Microsoft.VisualBasic

step 2:

private void button1_Click(object sender, EventArgs e)
{
  string result = Microsoft.VisualBasic.Interaction.InputBox("kkk","text", "", 10, 20);

  MessageBox.Show(result);
}

解决方案

Step 1: Check if you really added the reference ;-)

Microsoft.VisualBasic.VBCodeProvider is located in System.dll, which is referenced for every new project. It seems to me as if you're not referencing Microsoft.VisualBasic.dll at all.

这篇关于添加引用Microsoft.VisualBasic程序后无法得到输入框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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