On Nov 29, 2006, at 20:41 UTC, Chuck Pelto wrote:
> I'm running into a problem with the line of code....
>
> if c.Window.Control(i).Parent is me then
Yes, I saw that too, and assume it was a minor flaw intentionally put
into the code to exercise the reader's brain. :) Just think about
what this code is doing, and replace "me" with whatever represents the
parent of interest.
> And Parent is not a propertly of Control Class.
Good point; that's a slightly tougher flaw. You need to do something
like:
Dim ctl As Control = c.Window.Control(i)
if ctl IsA RectControl then
if RectControl(ctl).Parent is c then
Oops, I just gave away the answer to the first flaw!
Best,
- Joe
--
Joe Strout -- [EMAIL PROTECTED]
Verified Express, LLC "Making the Internet a Better Place"
http://www.verex.com/
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>