Results 1 to 6 of 6

Thread: [RESOLVED] Window keeps minimizing onload

  1. #1
    Hyperactive Member
    Join Date
    Mar 08
    Posts
    393

    Resolved [RESOLVED] Window keeps minimizing onload

    Hello: I have a windows application created using 2005. One of the screens keeps minimizing each time it's loading and I don't know why. when I look at the properties for the form, the window state is set to normal.

    I did have the below line of code being used when the user clicked a button on this form because i wanted to minimize the form at that time; however, I've sinced remmed it out because of what's happening now.

    What other settings can I look at that might be causing this?

    Thank you,
    Proctor

    Code:
    Me.WindowState = FormWindowState.Minimized

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 05
    Location
    Sydney, Australia
    Posts
    80,778

    Re: Window keeps minimizing onload

    Are you absolutely sure that your build is succeeding? If not then an old build may be being run.

  3. #3
    Hyperactive Member jasonwucinski's Avatar
    Join Date
    Mar 10
    Location
    Pittsburgh
    Posts
    443

    Re: Window keeps minimizing onload

    try cleaning your build, then rebuilding. Right click on the root app and select clean. then rebuild it. maybe you have something stuck in memory
    if i was able to help, rate my post!

  4. #4
    Hyperactive Member
    Join Date
    Mar 08
    Posts
    393

    Re: Window keeps minimizing onload

    Hello - thank you for your replies.
    I believe that my build is succeeding. after I build, it says "build succeeded" in the lower left hand corner.

    I did a clean and re-build, but it's still minimizing.

    I just discovered that this is only happening when I'm in debug mode. When i go in and just run the app, this form opens regularly.

    It does seem as if there's something stuck in memory for sure; it almost seemed like it resulted from me having that one line of code in there that was telling it to minimize. I did a search in my solution on "minimize" but nothing came up.

    Thanks again,
    Proctor

  5. #5
    Hyperactive Member
    Join Date
    Mar 08
    Posts
    393

    Re: Window keeps minimizing onload

    also....when I just run it...although it doesn't minimize, it doesn't give me the option to physically minimize the form (small minus in upper right hand corner).

  6. #6
    Hyperactive Member
    Join Date
    Mar 08
    Posts
    393

    Re: Window keeps minimizing onload

    Ok...after I ran the form without debbuging, when i went back to debugging, it started opening up without minimizing. Not sure why that made the difference? Also, fixed the other issue with the minimize option not displaying for the form. Set formBorderStyle=Fixed Single instead of Fixed Tool Window.

    thanks again for your help. I'll close up this ticket.
    Proctor

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •