Dear Ram Reddy, Ganesh Reddy,
Thank you for reaching out to the Microsoft Q&A.
This is a significant and intentional change in Windows 11, and you've correctly identified the cause. Your application is running into the OS's stricter user focus protection model.
You could try Using toast notifications: You could refer to this article Send a local app notification from a C# app - Windows apps | Microsoft Learn
Please understand that our initial reply may not always immediately resolve the issue. However, with your help and more detailed information, we can work together to find a solution. Thank you for your cooperation.
To assist others who might have similar questions and to help us improve our support system, we kindly encourage you to "Accept the answer" if it successfully addressed your concern. Accepting an answer lets other users know that this solution worked for you, and it also helps us track the effectiveness of our support efforts.