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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:30:18+00:00 2026-05-23T20:30:18+00:00

I have a namespace ABC, which has one form class, F and an ordinary

  • 0

I have a namespace ABC, which has one form class, F and an ordinary class C. Now I have another namespace XYZ with many different classes. Now, F is used only from C and nowhere else in the program. Every other classes use C, not F.

In visual studio (2010), from classes in XYZ namespace I can see F listed in the intellisense dropdown (since I’ve referenced ABC to use C). How can I prevent that?I want only C there. Any method would suffice as long as I can use C from XYZ.

Thanks.

  • 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-23T20:30:20+00:00Added an answer on May 23, 2026 at 8:30 pm

    Is there any reason why you can’t put it in another namespace to hide it from the other classes, e.g. namespace ABC.Forms ?

    If it were anything other than a form class (therefore is a partial class if you are using a recent version of .net) – I would say, why not make it an inner class to C – but I doubt that would be neat with a form class.

    I would go with the namespace change.

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

Sidebar

Related Questions

If I have namespace with two classes. I want to use class from one
Suppose I have namespace abc and I want to change it with def.xyz Then
I have an Exception class: namespace abc; class AbcException extends Exception { // blah
Let's say I have a class called 'foo' in namespace abc... namespace abc {
Say I have a template function in namespace A. I also have another namespace
I have the following code: namespace ConectorV2 { [assembly:InternalsVisibleTo(Pruebas)] internal static class Utilidades {
I have a XML file that has the following data, <extcode Type=abc Code=12345 />
I can not work this out. I have a class library called 'ABC.Service'. In
I have created one C# console application. In that application, I have many namespaces.
Say I have a jQuery plugin like $.abc = function() {}. Now I want

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.