Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

VB6 Menu

hello all,

i have made a vb app that has a menu e.g file, help, options

It it ok but when i go to use it if i bring up an explorer window and then close it the menu on my app is greyed out. it looks like it has been dsabled but it's not and to can stil use the menu options. once you click on one of the menu options they go back to the text being black. can someone tell me if it's possible to stop this as it is really annoying.

i am using version VB6 if that helps

cheers for any help

steve
:D
[556 byte] By [shanks326] at [2007-11-11 10:26:22]
# 1 Re: VB6 Menu
maybe you mean "lostFocus" this is normal when u set a focus on any other window(frame) the last window lose focus and seems to be disabled ...
Amahdy at 2007-11-11 17:22:43 >
# 2 Re: VB6 Menu
sorry this isn't what i mean't i know when you click on a new window the frame you were on before will loose focus, but with the application i made when you open a new explorer window the menu on my application gets greyed out and if you click on the app it remains greyed out. the only way to get it back to normal is to click on the menu select a submenu item and then it returns to being black. this is a problem because when people r using it, if they open another window it looks like the menu has been disabled but it hasn't you can still use it.

thanx for any help
shanks326 at 2007-11-11 17:23:40 >
# 3 Re: VB6 Menu
Do u use the built-in menu editor ? and do u mean the same problem in the attached application when u press on "command1" ?
Amahdy at 2007-11-11 17:24:39 >
# 4 Re: VB6 Menu
yeah thats the problem i get, is it something to do with refreshing or having to close and load the form again. but yeah that is the problem :)
shanks326 at 2007-11-11 17:25:43 >
# 5 Re: VB6 Menu
That's normal in all windows forms, The Windows is programmed like this so you may change for example in display options the disabled menu color to be the same as the enabled for example ... but normally all windows programmes are like that so I don't think that any user will feel that it's disabled .
Other wise you may make your owen menu instead of the built-in menu editor .
Amahdy at 2007-11-11 17:26:42 >