Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Common methods for different objects
Message
 
 
À
21/05/2009 13:58:09
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01400964
Message ID:
01401385
Vues:
39
>>Does it run fine? I got an error in run-time, not in the compile time. Also what type of the project did you chose for your class?
>OK. I got the error - so just implement the ISupportInitialize methods in the base class:
class SomeGrid : System.Windows.Forms.DataGrid ,System.ComponentModel.ISupportInitialize
>    {
>        public void BeginInit(){}
>        public void EndInit(){}
>    }
Unless something (like another thread) is trying to access the form during initialization (unlikely) this should work fine.

Too bad you were not here yesterday to help me figure this out. I guess I can try to go back to the idea of the class then - but may be not today - need to work on something else.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform