where is OnCommandUI

  • Thread starter Thread starter Yoramo
  • Start date Start date
Y

Yoramo

Hello

I'm searching for the right method to enable/disable my toolbar buttons
something equivalent to OnCommandUI.

any hint will be appreciated.

yoramo
 
* "Yoramo said:
I'm searching for the right method to enable/disable my toolbar buttons
something equivalent to OnCommandUI.

\\\
Me.ToolBar1.Buttons(23).Enabled = False
///
 
Hi Yoramo,
Unfortunately, unlike MFC WindowsForms doesn't have such a build-in
functionality. It is not hard to write it by yourself, though. There was one
very good article in MSDN magazine from October 2002 about that. The author
has written classes to fill that gap in the framework.

You can find the article here
http://msdn.microsoft.com/msdnmag/issues/02/10/CommandManagement/default.aspx

HTH
B\rgds
100


Yoramo said:
this I know. where is the event ?
 
thanks thats exactly what i was looking for.



100 said:
Hi Yoramo,
Unfortunately, unlike MFC WindowsForms doesn't have such a build-in
functionality. It is not hard to write it by yourself, though. There was one
very good article in MSDN magazine from October 2002 about that. The author
has written classes to fill that gap in the framework.

You can find the article here
http://msdn.microsoft.com/msdnmag/issues/02/10/CommandManagement/default.aspx

HTH
B\rgds
100


Yoramo said:
this I know. where is the event ?

Herfried K. Wagner said:
* "Yoramo" <yoramo@[NOSPAM]hotmail.com> scripsit:
I'm searching for the right method to enable/disable my toolbar buttons
something equivalent to OnCommandUI.

\\\
Me.ToolBar1.Buttons(23).Enabled = False
///
 
Back
Top