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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:14:39+00:00 2026-06-06T06:14:39+00:00

I created a simple Sudoku application, where each 3×3 squares is a user control,

  • 0

I created a simple Sudoku application, where each 3×3 squares is a user control, with this skeleton code in CellBlock.Designer.cs and nothing but the automatically generated code in CellBlock.cs:

namespace Sudoku
{
    partial class CellBlock
    {

        private System.ComponentModel.IContainer components = null;

        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }


        private void InitializeComponent()
        {
            this.CellOne = new System.Windows.Forms.MaskedTextBox();
            this.CellFour = new System.Windows.Forms.MaskedTextBox();
            this.CellFive = new System.Windows.Forms.MaskedTextBox();
            this.CellSix = new System.Windows.Forms.MaskedTextBox();
            this.CellTwo = new System.Windows.Forms.MaskedTextBox();
            this.CellThree = new System.Windows.Forms.MaskedTextBox();
            this.CellSeven = new System.Windows.Forms.MaskedTextBox();
            this.CellEight = new System.Windows.Forms.MaskedTextBox();
            this.CellNine = new System.Windows.Forms.MaskedTextBox();
            this.SuspendLayout();
            // 
            // CellOne
            // 
            this.CellOne.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.CellOne.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.CellOne.Location = new System.Drawing.Point(8, 8);
            this.CellOne.Mask = "0";
            this.CellOne.Name = "CellOne";
            this.CellOne.PromptChar = ' ';
            this.CellOne.Size = new System.Drawing.Size(26, 26);
            this.CellOne.TabIndex = 0;
            this.CellOne.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;

            //CellTwo through CellNine omitted for brevity

        // 
        // CellBlock
        // 
        this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
        this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
        this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
        this.Controls.Add(this.CellNine);
        this.Controls.Add(this.CellEight);
        this.Controls.Add(this.CellSeven);
        this.Controls.Add(this.CellThree);
        this.Controls.Add(this.CellTwo);
        this.Controls.Add(this.CellSix);
        this.Controls.Add(this.CellFive);
        this.Controls.Add(this.CellFour);
        this.Controls.Add(this.CellOne);
        this.Name = "CellBlock";
        this.Size = new System.Drawing.Size(107, 107);
        this.ResumeLayout(false);
        this.PerformLayout();

    }

    private System.Windows.Forms.MaskedTextBox CellOne;
    private System.Windows.Forms.MaskedTextBox CellFour;
    private System.Windows.Forms.MaskedTextBox CellFive;
    private System.Windows.Forms.MaskedTextBox CellSix;
    private System.Windows.Forms.MaskedTextBox CellTwo;
    private System.Windows.Forms.MaskedTextBox CellThree;
    private System.Windows.Forms.MaskedTextBox CellSeven;
    private System.Windows.Forms.MaskedTextBox CellEight;
    private System.Windows.Forms.MaskedTextBox CellNine;
}

}

These files are in the same solution as Sudoku.cs, the main file. I simply added a user control to the solution through the project menu. This is the code in Sudoku.Designer.cs, once again, automatically generated by Visual Studio.

namespace Sudoku
{
    partial class Sudoku
    {

        private System.ComponentModel.IContainer components = null;

        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Sudoku));
            this.cellBlock1 = new Sudoku.CellBlock();
            this.cellBlock2 = new Sudoku.CellBlock();
            this.cellBlock3 = new Sudoku.CellBlock();
            this.cellBlock4 = new Sudoku.CellBlock();
            this.cellBlock5 = new Sudoku.CellBlock();
            this.cellBlock6 = new Sudoku.CellBlock();
            this.cellBlock7 = new Sudoku.CellBlock();
            this.cellBlock8 = new Sudoku.CellBlock();
            this.cellBlock9 = new Sudoku.CellBlock(); //errors occur at these lines

}


        private CellBlock cellBlock1;
        private CellBlock cellBlock2;
        private CellBlock cellBlock3;
        private CellBlock cellBlock4;
        private CellBlock cellBlock5;
        private CellBlock cellBlock6;
        private CellBlock cellBlock7;
        private CellBlock cellBlock8;
        private CellBlock cellBlock9;

    }
}

I think that’s all correct, even though I’m omitting some of the automatically-generated code for the sake of brevity. When I build the solution, I get 9 errors like this:
The type name ‘CellBlock’ does not exist in the type ‘Sudoku.Sudoku’

referencing the lines that read: this.cellBlock1 = new Sudoku.CellBlock();, etc. I thought that maybe I need to add a reference to CellBlock, even though it's within the same solution, but when I clickAdd Reference`, nothing is listed under project.

  • 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-06T06:14:40+00:00Added an answer on June 6, 2026 at 6:14 am

    rename your namespace to new one other than Sudoku and then clean the solution and rebuild it.

    remove current CellBlock controls and add them again .

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

Sidebar

Related Questions

I created a simple Rating user control, the problem this control won't in WinRT
Ok I created simple user control that look like this <%@ Control Language=C# AutoEventWireup=true
I've created simple application that monitors X11's _NET_CLIENT_LIST . It prints me info when
Could someone help me on this, I have created simple web services using axis2
I created a simple GUI Application with Swing in Scala, and the Run as
i created a simple search input form for a Rails application, but i noticed
I am creating a simple Sudoku game. Since this is my first big i
I have created simple application in windows sharepoint services. Now I want to deploy
I've created simple application with Ruby on Rails and I’ve tried to commit it
I'm using Code-first and entity framework in my .NET MVC 3 application, I created

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.