How do I maximize a form that is minimized (through code)
Posted on 2006-10-26
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.
If PresentFlagState = Nothing Then
PresentFlagState = AMBParser_Flag.GetValue(AMBMLPValidString, 4)
Dim TestForNewFlagState As String = Nothing
TestForNewFlagState = AMBParser_Flag.GetValue(AMBMLPValidString, 4)
If PresentFlagState = TestForNewFlagState Then
NewFlagStateFound = False
NewFlagStateFound = True
PresentFlagState = TestForNewFlagState
If NewFlagStateFound = True Then
'Get Flag Detail
Select Case PresentFlagState
Case PresentFlagState = "Green"
AVAOMain.??? '<-This is where the form would need to be maximized.