Delay when selecting menu item

  • Thread starter Thread starter Anthony
  • Start date Start date
A

Anthony

Hi,

I'm experiencing a delay (of about 1-2 seconds) when I try and select and
item in my VB.NET windows menu. The menu item eventually appears and the
program carries on as normal. But I cannot track what is happening between
the click and the items appearing.

Strangely enough, occassionally I need to wait a second or so to get buttons
to fire off too. Are these problems related?

Does anyone have any thought?

Cheers,
Anthony
 
Anthony,

Do you have set in your options Option Strict On, or set that in top of your
program(s)?

Cor
 
Yes. I always code with this set ON. How is this related?

I tried building the solution in "release" and it made no difference.

Basically, if I hover the mouse over the menu it takes a good 2 seconds for
the menu to get selected and allow me to click an item.

Thanks
 
Why kind of hardware/OS are you running on? Can you run the compiled .exe
on another machine and does it behave the same?

I am having a hard time trying understand Cor's questioning Option Strict on
this one. But then again, I think I should make that question my new sig
line. :^)

Greg
 
Greg,

I ask this not forever however with strange effects like this with option
strict on, those are sometimes showed in the code directly.

Cor
 
There is no menu event code, ...that is I have not overriden any base
classes. In any case, the menu event will not be fired until the menu
receives the focus.

So just to reiterate my problem, ..my menu cannot get any focus for about
2-3 seconds whilst the mouse is hovering over it. I don't click any menu
items (because I can't - it doesn't have the focus).

However, ...I have compiled this and ran it on other (SOE) machines, (Win2k)
and it is working. It's a strange one, but if it is working on the SOEs then
I'm right. Thanks for your help folks.
 
Anthony,

The solution for this is mostly to create a very small project with the same
structure as the one that goes wrong and than to see if that goes wrong as
well.

Cor
 
Back
Top