C# unlike Visual Basic, does not have an Input DialogBox class to capture user input. Buts that's not a problem as you can just add a reference to Microsoft.VisualBasic.dll and use the static InputBox class from the Microsoft.VisualBasic.Interaction namespace. But if you want a custom InputBox, then checkout this project.
This custom InputBox, can replace the need to use VisualBasic's InputBox class. An added feature to this class, is that the textbox expands in height, when a user types in text that is longer than the textbox.
I've kept the design of the UI the same as the Custom MessageBox for consistency.
If you find this project useful, please leave your comments and if possible click the like button.
Download C#
No comments:
Post a Comment