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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:54:10+00:00 2026-06-12T17:54:10+00:00

I have defined a user control, ExpressionControl, under the namespace: TriggerEditor.UserControls I have a

  • 0

I have defined a user control, ExpressionControl, under the namespace:

TriggerEditor.UserControls

I have a form, “IfEditor”, under the namespace:

TriggerEditor.Forms

When I add an instance of my control to the form (naming it expCondition), the following code is generated in the Designer to create the control:

this.expCondition = new TriggerEditor.UserControls.ExpressionControl();

This results in the following compilation error:

The type name 'UserControls' does not exist in the type 'TriggerEditor.Forms.TriggerEditor'

I don’t understand why it is looking in “TriggerEditor.Forms.TriggerEditor”; that’s not what the code says. Now, I can resolve this error manually by modifying the line, removing the “TriggerEditor.” that preceeds “TriggerControls”, as such:

this.expCondition = new UserControls.ExpressionControl();

This satisfies the compiler, however I obviously don’t want to do this every time I add an instance of my ExpressionControl to a form. How do I avoid this situation?

  • 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-12T17:54:10+00:00Added an answer on June 12, 2026 at 5:54 pm

    It looks like you might have a TriggerEditor class within the TriggerEditor.Forms namespace; is this the case?

    If so, because the TriggerEditor class is within your current namespace, you are “closer” to this class, and therefore it is looking for a subclass.

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

Sidebar

Related Questions

I have a user control which deals with fileupload. I have defined a delegate
I have created a web user control called Activity. I have defined a public-facing
I have the following problem in wpf: I have defined a user control (in
I have a recursively defined user control that needs the following properties: there are
I have a user control with a property defined as follows: public partial class
I have a user control defined as follows: <UserControl ... ...... x:name=StartPage> <ToggleButton x:Name=FullScreenToggle
I have some common parts for all user control. It's defined in an interface,
I have button with custom content (a red circle) defined inside a user control
I have a groups user control and javascript is defined inside the control. In
I have a rather simple user control (RatingControl) that has a dependency property defined

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.