Re: dodefault?

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Wed, 14 Jan 2009 12:55:56 -0600, "Linn Kubler"
<lkubler@xxxxxxxxxxxxxxxxxx> wrote:

Hi,

I created a class for my treeview that I can drop onto my forms when I need
it, works fine. In adding drag and drop functionality I put code into the
classes dragdrop method. Now I have some steps I'd like performed after the
dragdrop is complete and these steps will vary based on the form used and
some of the other controls on the form. Ok, so I put code in the drag/drop
of the subclass that's on my form. Hope I'm describing that correctly.

When I run the form and perform my drag and drop it doesn't work because the
code in the parent class isn't being executed. Ok, so I put dodefault() in
the subclass method and it still doesn't work. I even put a couple
messagebox()'s in my code to see how far it gets and it still doesn't run
the parent classes code.

What am I doing wrong? I thought the purpose of the dodefault() function
was to run the code of the base class? I am just counting on it being
synchronous so that the base class completes before the subclass code runs.

Any suggestions?

Thanks in advance,
Linn


I am not sure what you mean by "I am just counting on it being
synchronous". The call to DODEFAULT() will execute the code in the
parent class method, so it will occur at whatever point you have the
DODEFAULT() call. Did you pass any parameters needed by the parent
class method in the DODEFAULT() call?

I would put a SET STEP ON in the subclass method and step through to
see what is happening.
.



Relevant Pages

  • Re: dodefault?
    ... When I run the form and perform my drag and drop it doesn't work because ... code in the parent class isn't being executed. ... I thought the purpose of the dodefault() function ... I would put a SET STEP ON in the subclass method and step through to ...
    (microsoft.public.fox.programmer.exchange)
  • Re: dodefault?
    ... When I run the form and perform my drag and drop it doesn't work because ... code in the parent class isn't being executed. ... I thought the purpose of the dodefault() function ... I would put a SET STEP ON in the subclass method and step through to ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Force execution of parent code
    ... > for some ppl thats just toooooooooo much. ... > [then dodefault()] call, and it made debugging an untrivial thing, even ... >> how to force the codes in the parent class to be executed ... >> (Parent class's code will be ignore if there's user code in the same ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Force execution of parent code
    ... for some ppl thats just toooooooooo much. ... [then dodefault()] ... > how to force the codes in the parent class to be executed ... > (Parent class's code will be ignore if there's user code in the same ...
    (microsoft.public.fox.programmer.exchange)
  • Re: comments for subclass
    ... > visual classes there's a button 'view parent code'. ... > method code of the parent class for viewing. ... >> I need to know parameters that is needed for DoDefault() ... >> function in a subclass without opening the class itself. ...
    (microsoft.public.fox.programmer.exchange)