Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Overriding click event in C# forms
Message
De
08/03/2007 01:51:57
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Titre:
Overriding click event in C# forms
Divers
Thread ID:
01201869
Message ID:
01201869
Vues:
56
The following snippet results in showing "Clicked 2" twice if we inherit from Form2 which can't explain. Without overriding both "Click 1" and "Click 2" are shown.
   public partial class Form1 : TWForm
    {

        internal virtual void twButton1_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Clicked 1"); 
        }

   public partial class Form2 : Form1
    {

...
        internal override void twButton1_Click(object sender, EventArgs e)
        {
            
            MessageBox.Show("Clicked 2"); 
        }
    }
Any idea how to achieve Foxpro behaviour to show "Click 2" just once or explain how it works or give a reference to explanation.


TIA
Michael
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform