How to trap Application Form Change event?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I had to disabled Form Inheritance because bug in VS 2005 in inheritance and
localization.
ANy suggestion how to trap form when it is to display or something
simmiliar, in order to set common properties for all forms. For example: (Not
to show in taskbar)


thanks
MilanB
 
MilanB,
I don't quite understand what is that you are trying to achieve. Can you
elaborate on this with probably some use case.
 
I will to set same properties to same values to all forms in my application.
For example, not show in taskbar, same font, and so on. Because I can not
use form inheritance, because of VS known bug (error when using form
inheritance and localization), I ask for alternative solution.

I tohought maybe there is someevent when application active form changed,
(like in Delphi), what I could use for acheive my aim.

Thanks
Milan
 
MilanB,

No I see what you mean. Unfotunately there is no solution out of the box.
Some of the proeprties fire change event that can be used to synchronize for
forms property synchornization, but others like ShowInTaskbar don't even
more ShowInTaskbar is not even a virtual so it cannot be overriden in order
to add the missing notification.

I don't quite understand how you can achieve that with the event of changing
the active form. AFAIK Windows Forms doesn provide such event, but it can be
easily implemented using Activated/Deactivated the form's enter events.
 
Back
Top