Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8185935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:01:40+00:00 2026-06-07T02:01:40+00:00

Inconsistent accessibility: field type ‘DannyGeneral.OptionsFile’ is less accessible than field ‘AnimationEditor.Form1.setting_file’ In Form1 i

  • 0
Inconsistent accessibility: field type 'DannyGeneral.OptionsFile' is less accessible than field 'AnimationEditor.Form1.setting_file'

In Form1 i did:

public  OptionsFile setting_file;

The error is on the setting_file part.

This is the beginning of the Options_File code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.IO;
using System.Configuration;




namespace DannyGeneral
{
    class OptionsFile
    {

        string path_exe;
        string temp_settings_file;
        string temp_settings_dir;
        string Options_File;
        StreamWriter sw;
        StreamReader sr;


    public OptionsFile(string settings)
    {
        if (!File.Exists(settings))
        {
            if (!Directory.Exists(Path.GetDirectoryName(settings)))
            {
                Directory.CreateDirectory(Path.GetDirectoryName(settings));
            }
            File.Create(settings).Close();
        }
        path_exe = Path.GetDirectoryName(Application.LocalUserAppDataPath);
        Options_File = settings; 
    }

And In Form1 the top:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using DannyGeneral;
using unfreez_wrapper;

namespace AnimationEditor
{
    public partial class Form1 : Form
    {
        private static string settings_dir;
        private static string settings_file;
        public  OptionsFile setting_file;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T02:01:43+00:00Added an answer on June 7, 2026 at 2:01 am

    You need to have the type OptionsFile itself be public if you want to use it as a public property.

    Restrictions on Using Accessibility Levels (C# Reference)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get an accessibility error Inconsistent accessibility: parameter type 'FoolballLeague.FootballLeagueDatabase' is less accessible than
I have this error message: Inconsistent accessibility: property type 'Comm.Resources.AppResources' is less accessible than
What is the following error : Inconsistent accessibility: parameter type '----.Messagetypes' is less accessible
I am getting the following error in VisualStudio Inconsistent accessibility: parameter type 'mynamespace.ProgressChangedEvent' is
Whats wrong with the following c# code? Compiler reports this error: Inconsistent accessibility: parameter
I'm getting inconsistent accessibility error in the following declaration: public static class Helper {
PHP has some pretty inconsistent parameters for functions (e.g. sometimes first haystack , then
I've noticed some inconsistent (inconsistent to me) behaviour in data.table when using different assignment
I'm seeing inconsistent behaviour when calling setResult() and finish() on some activities that were
The reference manual is inconsistent when talking about low power modes on the iMX27.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.