?
Solved

How do I maximize a form that is minimized (through code)

Posted on 2006-10-26
5
Medium Priority
?
234 Views
Last Modified: 2010-04-23
Friends,

I have a form that is running in the background (minimized), and it is listening to a TCP Stream (and consequently parsing the strings coming out of the stream).  Now, when a valid string is found, and matches the criteria below, I want to maximize the screen.  What is the syntax for maximizing a form?

Thanks in advance!

Btw, here is the code where, if the condition is met, the form would need to be maximized.

Case "F"
                If PresentFlagState = Nothing Then
                    PresentFlagState = AMBParser_Flag.GetValue(AMBMLPValidString, 4)
                Else
                    Dim TestForNewFlagState As String = Nothing
                    TestForNewFlagState = AMBParser_Flag.GetValue(AMBMLPValidString, 4)
                    If PresentFlagState = TestForNewFlagState Then
                        NewFlagStateFound = False
                    Else
                        NewFlagStateFound = True
                        PresentFlagState = TestForNewFlagState
                    End If
                End If

                If NewFlagStateFound = True Then
                    'Get Flag Detail
                    Select Case PresentFlagState
                        Case PresentFlagState = "Green"
                            AVAOMain.??? '<-This is where the form would need to be maximized.


Regards,
Eric
0
Comment
Question by:indy500fan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 2000 total points
ID: 17811957
Try:

    AVAOMain.WindowState = FormWindowState.Maximized
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 17811975
Try this

        AVAOMain.WindowState = FormWindowState.Maximized

Fernando
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 17811981
Sorry carl_tawn did not refresh before posting.
0
 

Author Comment

by:indy500fan
ID: 17811983
Sorry Fernando, carl_tawn beat you to it.  :)
0
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 17811993
No prob FernandoSoto, happens to us all ;o)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question