Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changes made to class do not show in form designer
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Class design
Title:
Changes made to class do not show in form designer
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01197404
Message ID:
01197404
Views:
63
Hi all, I've designed a form class to be used as the base form for my projects. However, after making some changes to the class (visually) the changes are not reflected in the new forms I've created. Also, objects added to this base class do not show but new methods and properties do.

The form class is contained in a separated project (class library) and I've rebuilt the project. I've also included this project (class lib) as part of the solution but still changes are not reflected.

Here's the code of my class library:
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using System.ComponentModel;

namespace EGClases
{
    public class FormaBase:Form 
    {
        private string m_FormCaption;
        
        public FormaBase() 
        {
         }

        // Caption
        [DefaultValue("Formabase1")]
        public string FormCaption
        {
            get {return this.m_FormCaption;}
            set { this.m_FormCaption = value;
                  base.Text = value;
                                }
        }

        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormaBase));
            this.SuspendLayout();
            // 
            // FormaBase
            // 
            this.ClientSize = new System.Drawing.Size(479, 313);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Name = "FormaBase";
            this.Text = "Formabase";
            this.Load += new System.EventHandler(this.FormaBase_Load);
            this.ResumeLayout(false);

        }

        private void FormaBase_Load(object sender, EventArgs e)
        {

        }

        
    }
}
This is just a test project but I wonder what can be wrong. Any help is appreciated.
I'm a mixture of Albert Einstein and Arnold Schwarzenegger. The only trouble is that I got Einstein's body and Schwarzenegger's brain
Next
Reply
Map
View

Click here to load this message in the networking platform