When I load a VB6 form, the Load method runs. And when I run form.show, it ignores the Activate method code. Any ideas why? James
Is it a project that you can make a copy of and remove most of it’s functionality, BUT still retaining your problem.
If you can, you might be able to email it to a Good Samaritan, who has his email address in his profile in this forum
Rob
PS My email address is in my profile
Hi Again,
One thing I have had in the past is that the form focus looses ordering. I have in the past found that by setting the tabindex order you might find it sorts itself out.
Eg:
Sub Form_Load()
cmdClickMe.tabindex=0
This tells the form to set the first focus to the given control. Might help.
Dave
Thanks, Dave.
Sadly, it’s XP I’m talking about. What’s annoying me most is that another Project loads a
number of Forms, and they all enter the Activate event.
I just know I’m missing something so simple…!!!
Hi
Is this Windows 7 you are finding the problem? I have had this in the past, best way - the way I have it working, place a timer control on the form.
Set this to say 500, disable it.
When your ready simply load form, activate timer.
At this point the form will then be loaded, shown and ready, the timer will kick in before the user has chance to do anything and then away you go.
Windows 7 / 8 processes the screen in a different order, hence things that use to follow a set method no longer do, as windows try’s to update the screen quicker than before.
That’s my experience anyway, so lob a timer on the form, then call the form_activate from within the timer event.
Kindest regards
Dave