With Winform Form Window (FixedDialog with toolbars)
providing options to install and uninstall the application. (Windows exe application)
When a user clicks on the button to install/uninstall, the window can neither be moved nor minimized. i.e. until the event raised for activity is not completed, it's stuck and not able to perform any action on the form window.
Events are added as below which does independent work. in form1.designer.cs
private void InitializeComponent(string defaultPath)
{
//Other steps
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.InstallButton.Click += new System.EventHandler(this.InstallButton_Click);
this.UnInstallButton.Click += new System.EventHandler(this.UnInstallButton_Click);
}
Eg. The function InstallButton_Click
has multiple steps for installation which copies files and does other work which takes around half a minute. During this time it doesn't allow to move or minimize the window.
In form.cs
private void InstallButton_Click(object sender, EventArgs e)
{
//Multiple steps for installation
//takes around 20-30 seconds to complete
}
The issue is similar to what is mentioned here, but don't see an acceptable answer there.
Is there a way to allow the user to minimize or move the window?