|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace RegexTester.UserControls
{
public partial class MessageDecorator : UserControl
{
private Control wrappedControl;
public MessageDecorator()
{
InitializeComponent();
}
private void ConfigureControl()
{
wrappedControl.Dock = DockStyle.Fill;
panelWrappedControl.Controls.Add(wrappedControl);
}
public Control WrappedControl { get { return wrappedControl; } set { wrappedControl = value; ConfigureControl(); } }
public void SetMessage(string message)
{
this.textBoxMessage.Text = message;
}
public void ResetMessage()
{
this.textBoxMessage.Text = "";
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
.NET developer. I wanted to be first an astronaut, then a jet pilot, but when I got a Commodore 64 for Christmas I never looked back. Also I would never have qualified for the first two things and everybody knows computer programmers get all the girls.