0

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);
}
1
  • I tried several times then it didn't work now I tried again it did work :) Commented Dec 6, 2010 at 21:43

2 Answers 2

2

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.

Sign up to request clarification or add additional context in comments.

Comments

1

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.