|
-
May 10th, 2012, 07:06 PM
#1
Thread Starter
Fanatic Member
[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
-
May 10th, 2012, 09:55 PM
#2
Re: Window keeps minimizing onload
Are you absolutely sure that your build is succeeding? If not then an old build may be being run.
-
May 11th, 2012, 06:10 AM
#3
Hyperactive Member
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!
-
May 11th, 2012, 09:55 AM
#4
Thread Starter
Fanatic Member
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
-
May 11th, 2012, 11:27 AM
#5
Thread Starter
Fanatic Member
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).
-
May 11th, 2012, 11:41 AM
#6
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|