Error	2	Inconsistent accessibility: parameter type 'SmartBackup.SmartBackupClass' is less accessible than method 'SmartBackup.BackupConfigurationForm.SmartBackupLoad(SmartBackup.SmartBackupClass)'	C:\Documents and Settings\Mantas\My Documents\Visual Studio 2008\Projects\SmartBackup\SmartBackup\BackupConfigurationForm.cs	19	21	SmartBackup

Hi all, I was just wondering what the above error message means in laymans terms?
It relates to this code:

namespace SmartBackup
{
    public partial class BackupConfigurationForm : Form
    {
        private SmartBackupClass smartBackup;
        public BackupConfigurationForm()
        {
            InitializeComponent();
        }
        public void SmartBackupLoad(SmartBackupClass smartBackupLoaded)
        {
            this.smartBackup = smartBackupLoaded;
        }
        private void BackupConfigurationForm_Load(object sender, EventArgs e)
        {

        }
    }
}

'SmartBackupClass' is a class, it has a reference to BackupConfigurationForm

private BackupConfigurationForm backupConfigurationForm;

backupConfigurationForm is created with the function:

public void BackupConfigurationButton()
        {
            this.backupConfigurationForm = new BackupConfigurationForm();
            this.backupConfigurationForm.Show();
            this.backupConfigurationForm.LoadSmartBackup(this);
        }

This is a problem with your use of public, protected, and private. Probably somewhere in your inheritance chain. Most likely forgot to add public infront of a class declaration somewhere.

thank you very much, its hours tryin to figure that out. thanks a lot

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.