M
Michael A. Covington
Further to previous post...
I have a big, complex program which works fine as long as I don't call
EnableVisualStyles.
If I do this:
Application.EnableVisualStyles();
Application.DoEvents();
Application.Run(new FormOpeningMenu());
then in one of my subordinate forms, which consits of buttons on other
things on a tab control, the non-focused buttons cease to work. Only the
focused on will actually call its OnClick procedure, although all of them
look, visually, as if they are being pressed.
My other forms are unafflicted.
On the afflicted form, the focus is being set programmatically by things
like button1.Select() or button1.Focus() (it doesn't matter which I use).
Does this ring any bells for anyone?
Many thanks!
I have a big, complex program which works fine as long as I don't call
EnableVisualStyles.
If I do this:
Application.EnableVisualStyles();
Application.DoEvents();
Application.Run(new FormOpeningMenu());
then in one of my subordinate forms, which consits of buttons on other
things on a tab control, the non-focused buttons cease to work. Only the
focused on will actually call its OnClick procedure, although all of them
look, visually, as if they are being pressed.
My other forms are unafflicted.
On the afflicted form, the focus is being set programmatically by things
like button1.Select() or button1.Focus() (it doesn't matter which I use).
Does this ring any bells for anyone?
Many thanks!