One of them is your child dialog does not have the Tab order correctly set to and other could be that tab order of your button and your next child window is not in order.