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

  • Home
  • SEARCH
  • 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 7588641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:58:21+00:00 2026-05-30T19:58:21+00:00

I have a project I’ve been working on for quite a while, and I’ve

  • 0

I have a project I’ve been working on for quite a while, and I’ve run into a referencing problem. Currently the solution outline looks like this:

Solution

  1. Agent_Toolbox namespace
    • MainWindow
    • CallTemplate (UserControl)
      • CallTemplate class
  2. CustomTextBoxes namespace
    • NumberTextBox (CustomControl)
      • NumberTextBox class

My problem is that CallTemplate uses one of the NumberTextBox custom controls. I need to reference the CallTemplate class from within the NumberTextBox class in a typeof statement. ie:

ParentControls parentControl = new ParentControls();
Visual parent = parentControl.GetParentControls(this, 3);
if (parent == typeof(CallTemplate))
{
    //Do something
}

But no matter what I try I can’t get VS to recognize CallTemplate in this instance as a class. I tried adding a reference to NumberTextBox, but it gives me an error of circular redundancy. I also tried seperating CallTemplate into a separate namespace, but then it can’t find NumberTextBox without a circular redundancy. Ont thing I thought of doing was placing all the User/Custom controls into a separate project within the solution, but then the xaml couldn’t find CustomTextBoxes in order to add the box into the CallTemplate. I’m prertty much frustrated and at a loss, and convinced it’s something simple I’m missing.

Any ideas please?

Edit:

I added a UserControl to the CustomTextBoxes project. VS studio placed it within the same namespace, and generated

public partial class CallTemplate: UserContol
{
    public CallTemplate()
    {
         InitializaComponent();
    }
}

If I try to rename the namespace it renames the whole namespace, rather than just this file’s. So I created a new namespace underneath, and pasted the CallTemplate code within it. VS balked at the InitializeComponent() method, saying it doesn’t exist with in the current context. Basically I need to know how to migrate one part of a namespace’s code to a different namespace.

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

    Two projects cannot reference each other. If they did, how would visual studio know which to build first? When that happens, it usually means it’s a design flaw. Combine your projects, or have the references only go one way.

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

Sidebar

Related Questions

I have a project that I'm currently working on but it currently only supports
I have project which is currently working and was developed long time back on
I have project that I'm working on that is going to require a webserver.
Problem domain We have Projects and Milestones Once created, a Milestone has a Project
I have a solution with an ASP.NET project and a Class library project where
I have project where i want to use the sqlcommandbuilder. My only problem is
I have project X, fully operational that compiles into X.exe I have project Y,
I have project Emle in Launchpad . I set it to import from emle.svn.sourceforge.net
I have a project that I would like to start beta testing soon, it
I have a project where I would like to generate a report export in

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.