By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,666 Members | 1,230 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,666 IT Pros & Developers. It's quick & easy.

Maximise Form

P: n/a
No matter what happens when you close form2 I want to ensure that Form 1 will
always returned maximised. Is there a method?
Nov 21 '05 #1
Share this Question
Share on Google+
6 Replies

P: n/a
"marcmc" <ma****@discussions.microsoft.com> schrieb
No matter what happens when you close form2 I want to ensure that
Form 1 will always returned maximised. Is there a method?

Please provide some more information. How is Form1 shown? How is Form2
shown? Who shows what? Did you specify a startup Form? Are they MDI child
forms?
Armin

Nov 21 '05 #2

P: n/a
"marcmc" <ma****@discussions.microsoft.com> schrieb:
No matter what happens when you close form2 I want to ensure that Form 1
will
always returned maximised. Is there a method?


\\\
Dim f As New Form2()
f.ShowDialog()
f.Dispose()
Me.WindowState = FormWindowState.Maximized
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

P: n/a
Form1 is a logon screen . Form2 is a MIS screen.
Form2 loads when login successful as follows

Dim frmMIS As New MIS
frmMIS.SetReceive(UName)
frmMIS.Show()

Then later I return from form2 to form1
as follows...

Me.Close()



"Armin Zingler" wrote:
"marcmc" <ma****@discussions.microsoft.com> schrieb
No matter what happens when you close form2 I want to ensure that
Form 1 will always returned maximised. Is there a method?

Please provide some more information. How is Form1 shown? How is Form2
shown? Who shows what? Did you specify a startup Form? Are they MDI child
forms?
Armin

Nov 21 '05 #4

P: n/a
"marcmc" <ma****@discussions.microsoft.com> schrieb
Form1 is a logon screen . Form2 is a MIS screen. Form2 loads when
login successful as follows

Dim frmMIS As New MIS
frmMIS.SetReceive(UName)
frmMIS.Show()

Then later I return from form2 to form1 as follows...

Me.Close()


Seems like Herfried gave the answer.
Armin
Nov 21 '05 #5

P: n/a
thankyou Herfried, that is the first simple code example I have found for
this simple question. I was reading the net about 101 ways to do this which
were all made unuseable due to unnecessary complexity :)
"Herfried K. Wagner [MVP]" wrote:
"marcmc" <ma****@discussions.microsoft.com> schrieb:
No matter what happens when you close form2 I want to ensure that Form 1
will
always returned maximised. Is there a method?


\\\
Dim f As New Form2()
f.ShowDialog()
f.Dispose()
Me.WindowState = FormWindowState.Maximized
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #6

P: n/a
"marcmc" <ma****@discussions.microsoft.com> schrieb:
thankyou Herfried, that is the first simple code example I have found for
this simple question. I was reading the net about 101 ways to do this
which
were all made unuseable due to unnecessary complexity :)


Well, like Armin I didn't really understand your question ;-). I am glad
that the answer solved the problem.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.