473,806 Members | 2,795 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

sometimes app opens up Minimized - have to restore/Maximize manual

using WinXp (SP3), VB2005. sometimes when a user opens the app - the app
opens in minimized WindowState and clicking on the app's icon in the windows
taskbar wont open the app to Normal WindowState. The short term fix I have
the users doing when this happens is to right-click the app's icon and select
Maximize. This will open the primary form Maximized. Then they close the
app and reopen it normally.

The windowState of the primary form (the startup form) is set to Normal
(actually, all the forms in the app are set to Normal open). If the app
opens in a minimized state - is there a way I can force the app to open in
Normal state?

I am thinking in the Form load event I could have something like

If me.WindowState = ...Minimized Then
Me.WindowState = ...Normal
End If

Any suggestions appreciated.

Thanks,
Rich
Nov 17 '08 #1
2 3825
You should be able to in the form.load just put the me.windowstate =
....normal ( without the if statement ).

You might be able to put the code in the "New" event as well. That might
solve your problem without having it in your Load Event.

I would suspect that would do the trick and solve your problem ( the form
load ). - not sure about the 'New' event.

Miro

"Rich" <Ri**@discussio ns.microsoft.co mwrote in message
news:05******** *************** ***********@mic rosoft.com...
using WinXp (SP3), VB2005. sometimes when a user opens the app - the app
opens in minimized WindowState and clicking on the app's icon in the
windows
taskbar wont open the app to Normal WindowState. The short term fix I
have
the users doing when this happens is to right-click the app's icon and
select
Maximize. This will open the primary form Maximized. Then they close
the
app and reopen it normally.

The windowState of the primary form (the startup form) is set to Normal
(actually, all the forms in the app are set to Normal open). If the app
opens in a minimized state - is there a way I can force the app to open in
Normal state?

I am thinking in the Form load event I could have something like

If me.WindowState = ...Minimized Then
Me.WindowState = ...Normal
End If

Any suggestions appreciated.

Thanks,
Rich

Nov 17 '08 #2
Thanks. Yes - I should ignore windowstate = min... and just say

me.windowstate = ...Normal.

Good Suggestion.
"Miro" wrote:
You should be able to in the form.load just put the me.windowstate =
....normal ( without the if statement ).

You might be able to put the code in the "New" event as well. That might
solve your problem without having it in your Load Event.

I would suspect that would do the trick and solve your problem ( the form
load ). - not sure about the 'New' event.

Miro

"Rich" <Ri**@discussio ns.microsoft.co mwrote in message
news:05******** *************** ***********@mic rosoft.com...
using WinXp (SP3), VB2005. sometimes when a user opens the app - the app
opens in minimized WindowState and clicking on the app's icon in the
windows
taskbar wont open the app to Normal WindowState. The short term fix I
have
the users doing when this happens is to right-click the app's icon and
select
Maximize. This will open the primary form Maximized. Then they close
the
app and reopen it normally.

The windowState of the primary form (the startup form) is set to Normal
(actually, all the forms in the app are set to Normal open). If the app
opens in a minimized state - is there a way I can force the app to open in
Normal state?

I am thinking in the Form load event I could have something like

If me.WindowState = ...Minimized Then
Me.WindowState = ...Normal
End If

Any suggestions appreciated.

Thanks,
Rich

Nov 17 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
5478
by: Colleyville Alan | last post by:
I have an app that uses Access to grab various PowerPoint slides using the followhyperlink command. I have set the PPT window to run in a minimized state: FollowHyperlink link Set oPres = oPPT.ActivePresentation oPPT.WindowState = ppWindowMinimized Then I do the copy and paste part: With oPres
1
3648
by: Novice | last post by:
I'm afraid I will incur the wraith of Mr. Powell on this one - but I did read his #1 FAQ and some others and I still can't figure this out. I created this little c# app. and I have a PictureBox in my Form. I load this image from the filesystem into the PictureBox and then I draw random little lines on the image. Then when I minimize and reopen the application the little lines are gone. Is there a way to save my lines in memory and...
1
2131
by: Bill Borg | last post by:
I have a simple chat application. "Host" program has a timer and listens for new requests for chat. The host user will typically minimize that window when there's nothing happening, but I'd like to provide a visual cue (e.g. explode the window) when a new request shows up. I think I can *maximize* the host window (using resizeTo, etc.), but I really want to *restore* its size to what it was before (i.e. mimic the "restore" button on a...
11
1796
by: Kai Zhang | last post by:
In my application, I used SetForegroundWindow hwnd to bring the background window to front of desktop. It works fine in most of the case. However, if the targeted background window is minimized, after executing SetForegroundWindow hwnd to maximize this window, this window cannot be minimized any longer(nothing happens when click the minimize button on top-right corner of the window title bar)
3
5439
by: Don | last post by:
If you have a form that calls another form via the following code: Dim myForm as Form2 myForm = New Form2 myForm.Owner = Me MyForm.ShowDialog and you minimize the second form, the first form remains visible (albeit completely disabled).
0
2149
by: raj.raghavan | last post by:
Hi, I have a database were all the indexes are in a seperate filegroup a few large tables are in a seperate filegroup. We take backup at different times and I have backup of primary, two filegroup and then transaction logs. The backup was successful when I restore the same backup it is erroring out with this error: Server: Msg 3135, Level 16, State 2, Line 1 The backup set in file 'E:\Manual Backup\test_primary.bak' was created by...
3
3429
by: xplosiveconcepts | last post by:
Hello all, I have a very simple PHP script that is reading a plain-text CSV file and parses it out into into a HTML table to display the data. No biggie. What I want to do is while keeping the browser window for that page open and minimized, i want to be able to maximize the window when the text file has been update. This is a small script that is being used for some dispatchers at a taxi company and the popup window is
5
10684
by: ray well | last post by:
i need to restore a minimized window whose handle i know, from within a running app. how would i do that? thanks for any help ray
0
920
by: aditya vikram | last post by:
Hi, I am a novice to VC++.net .I am woking on MDI application.In main window there are two panels ,one is on left side and another is on bottom side.Rest of the region on this parent window is for child windows.When I minimized any child window it hides behind the bottom panel (default bahaviour),I want to put minimized child windows in the client region so that I can see the minimized windows and able to maximize the clild windows. Plz...
0
9719
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10624
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10371
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10111
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5684
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3853
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.