Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Declaring Object References in Forms
Message
 
À
13/05/2005 16:07:31
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01014065
Message ID:
01014164
Vues:
19
Joe,

>A declaration of an object reference using WithEvents is preventing my MM.NET business objects from successfully loading data. Code is as follows:
>
>
>Public Class VisitorVisitsForm
>    Inherits mmBusinessForm
>
>    Dim WithEvents CSForm As New CompanySelectionForm
>...
>
>
>When I comment out this line the application works as expected.
>I need to declare this reference outside of any code blocks (Subs, Events or Methods).
>Why is this preventing the data from being retrieved via my Busniess Objects and bound to my WinForm?

It must be interrupting somehow with the event handlers receiving notification from the business objects. I recommend setting a breakpoint in mmTextBox.StateChangeHandler() to see if it ever receives notification.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform