Cannot get InputBox after adding link to Microsoft.VisualBasic

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

step 1: add the link 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);
}
0
source share
2 answers

Step 1: check if you really added the link; -)

Microsoft.VisualBasic.VBCodeProvideris in System.dllwhich each new project refers to. It seems to me that you are not referring to at all Microsoft.VisualBasic.dll.

+2
source

You need to add a link to Microsoft.VisualBasic, not to the library Microsoft.VisualBasic.Compatability.

+1
source

All Articles