using System;using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Diagnostics;
using System.Windows.Forms;
using System.Linq;
using System.Xml.Linq;
namespace WindowsApplication1
{
public partial class Form1
{
internal Form1()
{
InitializeComponent();
}
[System.Runtime.InteropServices.DllImport("user32", EntryPoint="BlockInput", ExactSpelling=true,
CharSet=System.Runtime.InteropServices.CharSet.Ansi, SetLastError=true)]
private static extern long BlockInput(long fBlock);
private void Button1_Click(object sender, System.EventArgs e)
{
Timer1.Enabled = true;
}
private void Timer1_Tick(object sender, System.EventArgs e)
{
BlockInput(-1);
ProgressBar1.Increment(+5);
if (ProgressBar1.Value == 100)
{
Timer1.Enabled = false;
BlockInput(0);
MessageBox.Show("Virus32.blog.ir");
ProgressBar1.Value = 0;
}
}
private static Form1 _DefaultInstance;
public static Form1 DefaultInstance
{
get
{
if (_DefaultInstance == null)
_DefaultInstance = new Form1();
return _DefaultInstance;
}
}
}
}