Calling base class's OnShow

  • Thread starter Thread starter Rasika WIJAYARATNE
  • Start date Start date
R

Rasika WIJAYARATNE

Hi I am doing the following in my windows form

protected: void virtual OnShown(EventArgs^ e ) override
{

}

I would like to know when I override OnShow does the base classes
OnShow also get called automatically called before mine does, if not
how do I call it (C++/CLI)?

Rasika.
 
You have to explicitly invoke the base class method (just as in ISO C++).

BaseClass::MethodName(...);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top