N
Neville Lang
Hi all,
The problem I am having is with a ContextMenu that is called from a
ToolBarButton, set as a PushButton style. The ContextMenu is raised from the
Click event of that button.
For some reason, I found that using the DropDownButton style of a
ToolBarButton would lockup (freeze) some PPCs, like the Toshiba e335 but not
the HP iPAQ 3900 series.
To counter this problem, I decided to use a ToolBarButton with the
PushButton style and link it separately to a Context menu using the Click
event. I can now report that this design now prevents the Toshiba e335 from
freezing, so I have at least fixed that problem. It also continues to work
normally on HP iPAQs.
However, a new problem has emerged. At runtime, I use a method to load a
different set of MenuItems on the ContextMenu depending on some flags. I do
this by using the MenuItem.Clear() method. I now find that while I could do
this with the ToolBarButton set to the DropDownMenu style, I cannot now do
the same thing with a separate ContextMenu triggering it from a Click event
of the ToolBarButton. I get a "System.ArgumentException" error.
It seems Daniel Moth also had a similar problem to this in August 2003.
Katie from Microsoft indicated that it was a bug in CF.
Daniel, did you find a way around this problem of loading different
MenuItems at runtime?
Microsoft, has this problem been fixed yet, maybe with CF v1.0 SP3 beta? It
is still a problem with CF v1.0 SP2.
Does anyone else have a workaround for this known bug?
I suspect this ContextMenu problem might also have something to do with the
freeze on a Toshiba e335 PPC when using the ToolBarButton style set to
DropDownMenu but I cannot be sure.
Regards,
Neville Lang
The problem I am having is with a ContextMenu that is called from a
ToolBarButton, set as a PushButton style. The ContextMenu is raised from the
Click event of that button.
For some reason, I found that using the DropDownButton style of a
ToolBarButton would lockup (freeze) some PPCs, like the Toshiba e335 but not
the HP iPAQ 3900 series.
To counter this problem, I decided to use a ToolBarButton with the
PushButton style and link it separately to a Context menu using the Click
event. I can now report that this design now prevents the Toshiba e335 from
freezing, so I have at least fixed that problem. It also continues to work
normally on HP iPAQs.
However, a new problem has emerged. At runtime, I use a method to load a
different set of MenuItems on the ContextMenu depending on some flags. I do
this by using the MenuItem.Clear() method. I now find that while I could do
this with the ToolBarButton set to the DropDownMenu style, I cannot now do
the same thing with a separate ContextMenu triggering it from a Click event
of the ToolBarButton. I get a "System.ArgumentException" error.
It seems Daniel Moth also had a similar problem to this in August 2003.
Katie from Microsoft indicated that it was a bug in CF.
Daniel, did you find a way around this problem of loading different
MenuItems at runtime?
Microsoft, has this problem been fixed yet, maybe with CF v1.0 SP3 beta? It
is still a problem with CF v1.0 SP2.
Does anyone else have a workaround for this known bug?
I suspect this ContextMenu problem might also have something to do with the
freeze on a Toshiba e335 PPC when using the ToolBarButton style set to
DropDownMenu but I cannot be sure.
Regards,
Neville Lang