473,408 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

C# - Input Dialog box

122 100+
Anyone know where to find the dll to add to the project or the name of the dll??
Mar 14 '08 #1
5 30941
balabaster
797 Expert 512MB
Anyone know where to find the dll to add to the project or the name of the dll??
I'm not sure what you're referring to, but if you mean adding a DLL reference into your project so that you can reference classes inside that DLL:

Pull up Solution Explorer
Right click the name of your project
Select "Add Reference..."

The list of all your DLLs will show up...actually, it's a tabbed list displaying firstly the .NET managed namespaces, then COM DLLs which can be loaded using the interop (that's handled automatically when you select one of these). If you want to add a custom DLL, select the browse tab to go find a specific DLL on your machine.

Hope that helps
Mar 15 '08 #2
DragonLord
122 100+
Well I knew how to add a reference but you did help and let me know what is under the .net tab lol... didn't know those were the name spaces.


Well I know that there is an input dialog box for C# I just don't know under what namespace. How can i find that out?
Mar 15 '08 #3
DragonLord
122 100+
Well I knew how to add a reference but you did help and let me know what is under the .net tab lol... didn't know those were the name spaces.


Well I know that there is an input dialog box for C# I just don't know under what namespace. How can i find that out?
Mar 15 '08 #4
balabaster
797 Expert 512MB
Well I knew how to add a reference but you did help and let me know what is under the .net tab lol... didn't know those were the name spaces.


Well I know that there is an input dialog box for C# I just don't know under what namespace. How can i find that out?
InputBox is an intrinsic object in VB 2005... and thus you shouldn't need to reference any namespaces to use it. However, in C# there isn't one - so you have to add a reference to the Visual Basic namespace in order to reference it. The namespace is Microsoft.VisualBasic.Interaction

VB
Expand|Select|Wrap|Line Numbers
  1. Dim sInput As String = InputBox("Hello", "Enter something fun.", "Type something")
C#
Expand|Select|Wrap|Line Numbers
  1. string sInput = Microsoft.VisualBasic.Interaction.InputBox("Hello", "Enter something fun", "Type something");
Hope that helps
Mar 16 '08 #5
oneous
1
Add SimpleInputDialog.cs file to your project which will find here: http://www.oronno.co.cc/C-Sharp-Tips-and-Tutorials.php

Now, simply ask user to give input text by following line.... [ just like MessageBox.Show() ]
Expand|Select|Wrap|Line Numbers
  1. String inputMessage = InputDialogBox.Show("Enter Text:");
Feb 23 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Dave Smithz | last post by:
OK, not strictly a PHP problem I guess but it occurred in my PHP project and I could not find a suitable Javascript NG (under pressure, already extended deadline. I user a "file" input type on a...
7
by: Basil Fawlty | last post by:
I need help and suggestions on how to modify the below program to get two numbers from user input using a input dialog box. B/c I'm a total newbie with next to no programming experience, I'm not...
2
by: Jim Witte | last post by:
Hi, How do I set a file input element? If it's a text input, I can set the value property. But this doesn't work with file inputs. And no, I can't change it - I'm writing a script to...
3
by: Federico | last post by:
Hello, I can't find how to do this: I have an input of type=file and I want that when the user clicks on it, javascript checks if some checkbox is selected and if so, the file dialog is shown....
0
by: tkailler | last post by:
Hello, I've created a dialog by creating a class in which Instead of calling wx.Dialog.__init__ I precreate the dialog and then I create the GUI dialog using the Create method. When I create...
3
by: june | last post by:
Hi, I am coding for an application with dialog window. I need intercept mouse input. I need catch raw input, pretty much everything for WM_INPUT: such as Left/Middle/Right button down/up,...
3
by: oopaevah | last post by:
I want to have a separate button which invokes the "browse" button on an input type=file. In internet explorer the following code works ok, in firefox nothing happens. All I do is call click()...
3
by: Ant | last post by:
Hi, I'm using a modal dialog box to input data. I have created properties on the dialog form to capture the data so that it might be read from the main form via the dialog form. This approach...
4
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
I've got an application that takes input from a handheld scanner: Once the incoming text meets the RegEx format and is the correct length, the command is accepted. The scanner that plugs in on...
5
by: snehadulur | last post by:
In the input box if we click ok or cancel the invoice prints. By default the credit card info is 0, and most of the cases its 0 even when we want to take a print out i.e., the value is changed. I...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.