Hi,

I am writing a custom control to accept date values only.

I wish to display an error message if an incorrect date is entered, however when I use the Messagebox.Show() command the dll will not compile.

The error message is "Name 'Messagebox' is not declared."

Either this is not possible, or I have to import a system reference of some kind into my project.

Can someone assist?