Results 1 to 6 of 6

Thread: [RESOLVED] Window keeps minimizing onload

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2008
    Posts
    513

    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
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Window keeps minimizing onload

    Are you absolutely sure that your build is succeeding? If not then an old build may be being run.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    Hyperactive Member jasonwucinski's Avatar
    Join Date
    Mar 2010
    Location
    Pittsburgh
    Posts
    452

    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

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2008
    Posts
    513

    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

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2008
    Posts
    513

    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

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2008
    Posts
    513

    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
  •  



Click Here to Expand Forum to Full Width