Solved

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

Posted on 2006-10-26
5
209 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
  • 2
  • 2
5 Comments
 
LVL 52

Accepted Solution

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

    AVAOMain.WindowState = FormWindowState.Maximized
0
 
LVL 62

Expert Comment

by:Fernando Soto
ID: 17811975
Try this

        AVAOMain.WindowState = FormWindowState.Maximized

Fernando
0
 
LVL 62

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

785 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