John W. Colby
jcolby at colbyconsulting.com
Tue Feb 25 08:08:00 CST 2003
Woohoo! Once it sinks in that a class can raise an event, suddenly the world opens up. The class can now notify the world that it has finished doing something, that something is available, that it needs attention etc. And you are on your way. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-admin at databaseadvisors.com [mailto:accessd-admin at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Tuesday, February 25, 2003 8:06 AM To: accessd at databaseadvisors.com Subject: [AccessD] Classes and Events Thanks I just want to say THANK YOU for the recent discussion on classes and Events. I still don't quite have a handle on using events in custom class modules with form controls yet, but it's slowly starting to sink in. Well, it make more sense now than it did before. What I really need to and want to thank you for is opening my mind to custom classes with custom events. I am currently rewriting a Word export from a VB App with encapsulated the Word export in a class and I was trying to figure out how to update a control on the form with status messages. I tried passing the control to the class, but it didn't like the way I was doing it. THen all of a sudden I realised that if I rasie an event in the custom class, and let the form handle the event raised, then I can use ANY control, and not just a specific type of control to display the status. And what do you know, I got it working within a couple of minutes. Raising and handling events is SO powerful. Really, thanks for opening my eyes to it. Bryan Carbonnell bryan_carbonnell at cbc.ca _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 2596 bytes Desc: not available URL: <http://databaseadvisors.com/pipermail/accessd/attachments/20030225/1c39439c/attachment-0001.bin>