Control for InputBox in C#

  • Thread starter Siddharth Prakash Phatarphod
  • Start date
S

Siddharth Prakash Phatarphod

Hi,

I am working on Windows Forms with C#.

Cud ne one tell me which is the control in C# that I can use in place of
InputBox in VB.NET for Windows Forms?

Thanx in advance,

Sid :)
 
S

Simon Bayling

There isn't a direct replacement, but then you don't need one.

Add a reference to Microsoft.VisualBasic

string result = Microsoft.VisualBasic.Interaction.InputBox("text", "title",
int_xPos, int_yPos);

Cheers,
Simon.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top