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 6561953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:39:05+00:00 2026-05-25T13:39:05+00:00

So I have created a Windows Form in C#. I have my form, but

  • 0

So I have created a Windows Form in C#. I have my form, but I then created another class file, and in turn, another class. Back in the form, I want to be able to access my class (called Test).

I’ve tried declaring my class by its name:

Test myclass = new Test();

And I’ve tried simply accessing its method:

Test.Print("helloworld");

However, no matter what I do, I get the error:

The type or namespace name ‘Highlighter’ does not exist in the
namespace ‘Syntax_Highlighting’ (are you missing an assembly
reference?)

So, how do I fix it so I can use my class? My two files share the same namespace (and even adding it as a using directive didn’t fix it).

  • 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-05-25T13:39:06+00:00Added an answer on May 25, 2026 at 1:39 pm

    Post your code (and I might edit when you do) but, first blush, your new class is probably not marked public.

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

Sidebar

Related Questions

I have created a windows glass form that inherits from system.windows.forms.form and then I
I have created an application in windows form. Once I submit the application, the
Im using c# .net windows application form. I have created many databases with many
Im using c# .net windows form application. I have many databases created using sql
I have a form created in Windows Forms which is draggable wherever I click.
I have created two forms in my Windows Application. One Form acts as a
I have created a windows mobile application in Visual Studio. I want to templatize
I have a windows form application that uses a Shared class to house all
I have a requirement to create a windows form control which has to detect
I have been tasked to create a form designer application in Windows Forms. The

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.