Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C# lacks
01-02-2010, 12:02 PM
Post: #1
C# lacks
One thing C# lacks in a built in input dialog box. You have to make your own custom one. I think that is pretty gay.
Visit this user's website Find all posts by this user
Quote this message in a reply
01-02-2010, 12:09 PM
Post: #2
RE: C# lacks
It has no InputBox() function?

[Image: pgsig copy.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
01-02-2010, 12:21 PM
Post: #3
RE: C# lacks
(01-02-2010 12:09 PM)FreckleS Wrote:  It has no InputBox() function?

Nope but I made a way around it.
Step 1:
First you need to Project->Reference and choose Microsoft Visual Basic Runtime under the .Net Tab.

Step 2:
Add Microsoft VisualBasic to uses
Code:
uses Microsoft.VisualBasic;
Step 3:
Implementation of the vb InputBox
Code:
string x = Interaction.InputBox("hi", "hello", "nothing", 10, 10);
MessageBox.Show(x);
Visit this user's website Find all posts by this user
Quote this message in a reply
01-02-2010, 01:07 PM
Post: #4
RE: C# lacks
Ah, well done Wink

[Image: pgsig copy.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


 Quick Theme: