| | |
'Inconsistent accessibility' with multiple classes
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Aug 2008
Posts: 1
Reputation:
Solved Threads: 0
C# Syntax (Toggle Plain Text)
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:
C# Syntax (Toggle Plain Text)
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) { } } }
C# Syntax (Toggle Plain Text)
private BackupConfigurationForm backupConfigurationForm;
backupConfigurationForm is created with the function:
C# Syntax (Toggle Plain Text)
public void BackupConfigurationButton() { this.backupConfigurationForm = new BackupConfigurationForm(); this.backupConfigurationForm.Show(); this.backupConfigurationForm.LoadSmartBackup(this); }
![]() |
Other Threads in the C# Forum
- Previous Thread: How to protect my exe file in cd?
- Next Thread: SpliterContainer + C#
| Thread Tools | Search this Thread |
.net access ado.net algorithm array barchart bitmap box broadcast buttons c# check checkbox client color combo combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees developer development draganddrop drawing encryption enum equation event excel file files form format forms function gdi+ httpwebrequest image index input install java label list listbox listener mandelbrot math mathematics mouseclick mysql nargalax operator path photoshop picturebox pixelinversion post programming radians regex remote remoting restore richtextbox save saving serialization server sleep socket sql stack statistics stream string table tcp text textbox thread time timer update usercontrol validation view visualstudio webbrowser windows winforms wpf xml





