Hi Ssebu,
I try with the following code but cannot reproduce the problem, the Activate method returns true either on local physical machine or VMWare. Could you show us the code you used?
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
}
void Window1_Loaded(object sender, RoutedEventArgs e)
{
Window2 w = new Window2();
w.Show();
}
}
public partial class Window2 : Window
{
public Window2()
{
InitializeComponent();
}
protected override void OnContentRendered(EventArgs e)
{
bool b = this.Activate();
MessageBox.Show(b.ToString());
base.OnContentRendered(e);
}
}
Best Regards,
Zhi-Xin
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework!