Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subclassing mmMessageBoxButtons
Message
De
23/06/2004 15:36:29
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00916571
Message ID:
00916590
Vues:
11
Shawn,

OK, I edited my original reply.

>When I try to subclass the MessageBoxButtons by doing the following, I get this error :
>No overload for method 'mmMessageBoxAbortButton' takes '0' arguments

Well, the error message means just what it says and you're trying to create a subclass from this MM class without any parameters. I don't use MM, so I don't know what the code looks like for that Button (you'll have to look at the source code to see). And you'll need code something like this:
using System;

using OakLeaf.MM.Main.Windows.Forms;

namespace Apps4U.Windows.Forms
{

	/// <summary>
	/// a4uMessageBoxOKButton class
	/// </summary>
	public class a4uMessageBoxAbortButton : mmMessageBoxAbortButton
        {
--->       public a4uMessageBoxAbortButton(WhateverTheParameterTypeIs e) : base(e)
           {
           }
        }
~~Bonnie


>Hi All,
>
>I am subclassing the MM framework. Being a newbie at this in VS.NET, I am hitting an error.
>
>On a basic text box, well i think it is easy to subclass it, I just create a component.cs and add the right system refs and the oakleaf ref to the code and change the code to inherit from mmTextBox as follows.
>
>
>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
>{
>	/// <summary>
>	/// Summary description for a4uTextBox.
>	/// </summary>
>--->	public class a4uTextBox : mmTextBox
>
>
>
>
>
>When I try to subclass the MessageBoxButtons by doing the following, I get this error :
>No overload for method 'mmMessageBoxAbortButton' takes '0' arguments
>
>Any Help would be appreciated..
>
>
>using System;
>
>using OakLeaf.MM.Main.Windows.Forms;
>
>namespace Apps4U.Windows.Forms
>{
>
>	/// <summary>
>	/// a4uMessageBoxOKButton class
>	/// </summary>
>--->	public class a4uMessageBoxAbortButton : mmMessageBoxAbortButton
>
>
>
>
>Thanks,
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