code:
namespace LOLMM
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
Topmost = true;
Loaded += new RoutedEventHandler(MainWindow_Loaded);
t.Interval = TimeSpan.FromMilliseconds(300);
t.Tick += new EventHandler(t_Tick);
}
DispatcherTimer t = new DispatcherTimer();
void t_Tick(object sender, EventArgs e)
{
TopMostWindow.SetTopomost(new WindowInteropHelper(this).Handle);
}
void MainWindow_Loaded(object sender, RoutedEventArgs e)
{
TopMostWindow.SetTopomost(new WindowInteropHelper(this).Handle);
t.Start();
}
}
}
namespace LOLMM
{
/// <s