PDA

Click to See Complete Forum and Search --> : activate child window


rsmall
Jun 5th, 2001, 11:25 AM
Could someone please help me with setting a child window active?

In my vb program code I use the "AppActivate" method to make another application visible. However, this only sets the parent window as active and not the child window that is visible. I've been trying various api functions but can't seem to get it to work.

If I haven't made myself clear, check out this image and you can see what I mean.

http://www.bbcyoungpeoples.homestead.com

Thanks,

Ryan

P.S. Due to the nature of my program I cannot use a sendkeys statement to start the command which would put focus to the dialog, I have to interact with the dialog after the command has started.

amac
Jun 5th, 2001, 01:27 PM
Is the application you are tryin to set the focus of the child window written by you???

Matthew Gates
Jun 5th, 2001, 01:35 PM
Try the ZOrder method.

Megatron
Jun 5th, 2001, 03:16 PM
Use the SetForegroundWindow function.