Thanks Lew, That helps my understanding of containers and inheritance. I have just written a response to the person from MB Software which details what I am trying to do. Can I define a container that will hold a textbox and two invisible editboxes? Would that be the best /easiest way to achieve what I want? Can you recommend what I should read to help me understand how to do so?
Thanks - Joe On Saturday, January 03, 2009 12:39 AM, lew wrote: > >Date: Sat, 3 Jan 2009 00:39:12 -0500 >From: lew >To: [email protected] >cc: >Subject: RE: Accessing the properties of a parent (newbee) > >Neither editboxes or textboxes are containers, hence they can't have >'children' in the sense you are seeking. >What you can do, however, is have an invisible editbox that is contained by >the same container >(form/page/container) as the textbox. You'd make it visible when you need to & >hide it afterwards. Both the >editbox and textbox would be able to 'see' the parent container's properties. > >-----Original Message----- >From: [email protected] [mailto:[email protected]] On >Behalf Of Joe Yoder >Sent: Friday, January 02, 2009 7:50 PM >To: [email protected] >Subject: Accessing the properties of a parent (newbee) > >I trying to get the hang of working with classes. At this point I am working >exclusively in code. I >understand it will be possible to convert to VCX? format when I finally >understand what I am doing. > >I'm not sure if "child", "parent" and "subclass" are proper terminology so if >what I say doesn't make sense >feel free to question/correct me. I want to subclass a TextBox so that it can >create an EditBox on the fly. >I need the child EditBox to be able to read and write the parent TextBox >properties. I started expecting to >return parameters like one does from functions but suspect that won't work >after a control has lost focus. > >I have a mockup partially working but am using a form method called from the >TextBox to create the EditBox >rather than a method on the subclassed TextBox. I don't know how to handle >the naming in this situation. Do >I need to worry about name collisions or will the system handle it for me? > >A very simple example would probably be the easiest way for me to get the >light bulb to come on! > >Thanks in advance, > >Joe > > >--- StripMime Report -- processed MIME parts --- >multipart/alternative > text/plain (text body -- kept) > text/html >--- > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

