Bob-
How about something quick and dirty like this:
Private Sub frmMain_SizeChanged(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.SizeChanged
Me.WindowState = FormWindowState.Maximized
End Sub
I tested it out quickly and depending on the speed of the machine, every now
and again you may see a very short flicker but I did not see any form shrink
and then resize - just the occassional flicker.
If you come up with something better, let me know - I would deffinately be
interested.
Thanks-
Tony Wissler
tewissler@REMOVEME.gmail.com
Dad, MCP, MCSE
> Hi all,
>
[quoted text clipped - 8 lines]
>
> regards.
Bob - 26 Mar 2007 02:05 GMT
Thanks Tony,
I'm using your suggestion .. it keeps the Application the right size and
puts it back where I had it intended to be positioned ... it doesnt 'lock'
the App to window so it can be dragged around the screen still .. is there a
way to do this?
Or am I using this wrong...
private void ofsConsole_SizeChanged(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Maximized;
}
> Bob-
>
[quoted text clipped - 17 lines]
> tewissler@REMOVEME.gmail.com
> Dad, MCP, MCSE
...there's a "minsize" property on the form isn't there? - not ideal -
but best I can do ;)
Tony Wissler - 23 Mar 2007 12:27 GMT
Your absolutely right and this may work better tthen the workaround I gave
above - but what if the screen resolution and/or screen format (standard vs
wide) on the user machines differ...
That was the problem I ran into when I had to battle an issue similar to
this for one Windows Form application I had the oppurtunity to work on.
> ...there's a "minsize" property on the form isn't there? - not ideal -
> but best I can do ;)