<CODE>
1 - The Dll
InputBox.cs
namespace MsgBox
{
public class InputBox
{
private string _textValue;
public string textValue
{
get { return _textValue; }
set { _textValue = value; }
}
public string GetTextValue()
{
InputForm clsForm = new InputForm();
clsForm.Visible = true;
clsForm.Show();
return _textValue;
}
}
}
2. The Form in the dll
Form.Cs
namespace MsgBox
{
public partial class InputForm : Form
{
InputBox Box = new InputBox();
public InputForm()
{
InitializeComponent();
}
You need ShowDialog or Application.Run in order for a Win32 messagepump to be running in the background, to respond to mouse clicks, paint the screen, etc.
Chip H.
____________________________________________________________________ If you want to get the best response to a question, please read FAQ222-2244 first
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.