-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Is there an easy method to restore a minimized form to its previous state, either Normal or Maximized? I'm expecting the same functionality as clicking the taskbar (or right-clicking and choosing restore).
So far, I have this, but if the form was previously maximized, it still comes back as a normal…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have an application that has a splash screen shown before I create my main window. I want to avoid the main window stealing the focus when it gets created if the user has focused another application while the splash screen was shown.
My application's startup looks like this:
private void Application_Startup(object…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello. Does anyone know how I can chage the window state of a form, from another thread? This is the code I'm using:
private void button4_Click(object sender, EventArgs e)
{
string pathe = label1.Text;
string name = Path.GetFileName(pathe);
pathe = pathe…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I would like to know whether any libraries are available in Windows OS which allows us to capture other applications window states
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Is there an easy way to determine the size of a Form it does have in WindowState=Normal, without actually changing the Form state?
Here is what I do now (C# code):
public class MyForm: Form
{
public void MyMethod()
{
// ...
FormWindowState oldState = this.WindowState;
…
>>> More