Maximise Form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

No matter what happens when you close form2 I want to ensure that Form 1 will
always returned maximised. Is there a method?
 
marcmc said:
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
 
marcmc said:
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
///
 
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()
 
marcmc said:
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
 
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 :)
 
marcmc said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top