Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subclassing - using statements
Message
De
30/06/2004 10:25:52
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00918986
Message ID:
00919019
Vues:
15
Shawn,

In the particular case you've just shown, it'll work without all the extra using statements. All a using statement really is for is to allow you to use "shortcuts" in your code so that you don't have to type out the fully qualified control's name. In other words, you could still define your button like this and totally leave off the using OakLeaf.MM.Main.Windows.Forms:
	public class a4uButtonSave : using OakLeaf.MM.Main.Windows.Forms.mmButtonSave
	{
		public a4uButtonSave()
		{
		}
	}
Don't worry, if you need one, the compiler will let you know. <g>

~~Bonnie


>If a parent Class has the folling using statements :
>
>
>using System;
>using System.Collections;
>using System.ComponentModel;
>using System.Drawing;
>using System.Drawing.Design;
>using System.Drawing.Drawing2D;
>using System.Data;
>using System.IO;
>using System.Windows.Forms;
>
>using OakLeaf.MM.Main.Windows.Forms;
>
>namespace Apps4U.Windows.Forms.Buttons
>{
>	/// <summary>
>	/// Summary description for a4uButton.
>	/// </summary>
>	public class a4uButtonSave : mmButtonSave
>	{
>		public a4uButtonSave()
>		{
>		}
>	}
>}
>
>
>
>When i subclass this element do i have to re-issue all the same using commands or can i bring it down to
>
>
>using OakLeaf.MM.Main.Windows.Forms;
>
>namespace Apps4U.Windows.Forms.Buttons
>{
>	/// <summary>
>	/// Summary description for a4uButton.
>	/// </summary>
>	public class a4uButtonSave : mmButtonSave
>	{
>		public a4uButtonSave()
>		{
>		}
>	}
>}
>
>
>
>
>Thanks In Advance
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