Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changes made to class do not show in form designer
Message
De
20/02/2007 23:40:14
 
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01197404
Message ID:
01197503
Vues:
12
The problem is most likely that the DLL is not copied to the bin folder of whatever project is referencing it. In the Solution Explorer, right-click on the project references and choose Properties for the referenced class library. "Copy Local" should be set to true. If that doesn't solve the problem, I'll have to think about it a bit more.

~~Bonnie



>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.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform