Creating derived class from DataSet
<p>I created my own class derived from DataSet and added some properties.
 This class is called "LjbDatabase". But I can't see a new properties in Properties Window
and after putting on form my control has name "dataSet1". In Toolbox the name is
"LjbDatabase". I added it as Component. I tried also as Custom Control.
What I am doing wrong? Bellow is code:</p>

<pre><code>public enum DataBaseType { dbFb, dbMS, dbMy };   

public partial class LjbDatabase : DataSet
{
    private string _connectionstring;
    private DataBaseType dbtype;

    public LjbDatabase()
    {
        InitializeComponent();
        dbtype = DataBaseType.dbFb;
        _connectionstring = "";
    }

    public LjbDatabase(IContainer container)
    {
        container.Add(this);

        InitializeComponent();
    }

    [Category("Data")]
    [Browsable(true)]
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
    public string ConnectionString
    {
        get { return _connectionstring; }
        set { _connectionstring = value; }
    }

    [Category("Data")]
    [Browsable(true)]
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
    public DataBaseType DBType
    {
        get { return dbtype; }
        set
        {
            dbtype = value;

        }
    }
}
</code></pre>

<p>Regards,</p>

<p>Ljubo</p>
