i have source code for automatic closed MessageBox. i just want to disable any button in MessageBox.
My code like this :
public void CloseIt()
{
System.Threading.Thread.Sleep(5000);
Microsoft.VisualBasic.Interaction.AppActivate(
System.Diagnostics.Process.GetCurrentProcess().Id);
SendKeys.SendWait(" ");
}
in the button_Click like this :
(new System.Threading.Thread(CloseIt)).Start();
MessageBox.Show("Help me please...");