i create class
my code is
Code:
using System;
using System.Collections.Generic;
using System.Text;
namespace favoriteMsg
{
public class Class1 : System.Windows.Forms.MessageBox
{
}
}
i recive th flowing error from compiler
Code:
The type 'System.Windows.Forms.MessageBox' has no constructors defined
then i change my code to this
Code:
using System;
using System.Collections.Generic;
using System.Text;
namespace favoriteMsg
{
static class Class1 : System.Windows.Forms.MessageBox
{
}
}
but i recive another error
Code:
Static class 'favoriteMsg.Class1' cannot derive from type 'System.Windows.Forms.MessageBox'. Static classes must derive from object.
what is the problem ?:(