473,387 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 3804
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**@discussions.microsoft.comwrote in message
news:05**********************************@microsof t.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**@discussions.microsoft.comwrote in message
news:05**********************************@microsof t.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
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 =...
1
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...
1
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...
11
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...
3
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...
0
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...
3
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...
5
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
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...

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.