473,385 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Maximise Form

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
6 1043
"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
"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
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
"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
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: John | last post by:
Dear all, It been more than 3 days I am trying to debug this program, I interpret it using activePerl and it is giving (perl -wc code_process.pl) no error syntax but when I put it online, change...
5
by: Richard Cornford | last post by:
I am interested in hearing opinions on the semantic meaning of FORM (elements) in HTML. I have to start of apologising because this question arose in a context that is not applicable to the...
8
by: WindAndWaves | last post by:
Hi Gurus I am a newbie.... and I was wondering if it is possible to maximise a screen in javascript. right now, I use this code: A HREF="heritage.html" onClick="msgWindow=window.open...
4
by: Andrew Poulos | last post by:
If I use this code to maximise a browser window: window.moveTo(0,0); window.resizeTo(screen.width,screen.height); it works but on Windows the user can have a taskbar visible and the browser...
0
by: Rob Nicholson | last post by:
When debugging an ASP.NET program, I keep having to maximise the Internet Explorer window to full screen (to check that the grid based controls layout okay at 1024x768 screen resolution). Is...
4
by: sathyakvani | last post by:
hi all, when i am running the applicatiion the browser is it shows is in a small window but i want it to show in maximised form fit to the screen i work in pls tel me how to change sathya
2
by: panteraboy | last post by:
Hi again there folks, I was wondering if its possible to maximise the window of the form through vba or access itself. I wish all my form windows to open fully and i was wondering does access...
1
by: creamBoy | last post by:
Guys, this is very annoying. I'm almost at completion of this project and i'm still stuck. I declare a form object and add it to the MDI form, ChildForm childFormObj = new ChildForm();...
2
by: Phil Stanton | last post by:
I know this sounds involved, but it works ... almost I am using a Hyperlink to run an Excel application which generates a chart based on a query in the current database. This chart is saved a a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.