Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Declaring Object References in Forms
Message
 
To
13/05/2005 16:07:31
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01014065
Message ID:
01014164
Views:
18
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform