How can I refer to an outer method?

  • Thread starter Thread starter Balint Toth
  • Start date Start date
B

Balint Toth

Hi,

I would like to make some initialization code if the BringToFront method is
callod of a form.

So, I wrote:

public virtual void BringToFront()

{

initialization code...

xxx

}

I dont know what to write to the xxx after initialization. I would like to
call the original BringToFront method, but I dont know how to refer to it.
If I write simply BringToFront() , then it refers to my method, and will
cause error becouse of an infinite loop.

I'm sure this is thing of basic knowledge, but I can't figure it out. Any
hint? (in C++ -as I remember - the "::" did the thing)

Thanks in advance,

Bálint Tóth
 
Back
Top