Hey guys,
I've got a MAIN form, which I have a series of navigational buttons on.
When I open a secondary form from that form, I'd like to be able to HIDE the
original form. The reason is, if the user wants to minimize the application
so that he / she can then do something else, I don't want them to immediately
see the original form.
On the other hand, when they exit from the 2nd form, I'd like for the
original form (the MAIN screen) to re-appear.
How can I do this?
Any ideas?
Thanks! 2 1923
You could put something like this in the event handler:
//assuming this is the main form
this.Hide();
newform.ShowDia log(this);
this.Show();
That would hide the form while the 2nd is show. However, passing the main
form as the owner of the dialog should keep it shown above it.
If you dont want the 2nd form to be model, you would need to handle the
OnClosed event to show the main form.
HTH
--
Ciaran O''Donnell http://wannabedeveloper.spaces.live.com
"Todd Jaspers" wrote:
Hey guys,
I've got a MAIN form, which I have a series of navigational buttons on.
When I open a secondary form from that form, I'd like to be able to HIDE the
original form. The reason is, if the user wants to minimize the application
so that he / she can then do something else, I don't want them to immediately
see the original form.
On the other hand, when they exit from the 2nd form, I'd like for the
original form (the MAIN screen) to re-appear.
How can I do this?
Any ideas?
Thanks!
OMG, you're so awesome. Thank you!!!
"Ciaran O''Donnell" wrote:
You could put something like this in the event handler:
//assuming this is the main form
this.Hide();
newform.ShowDia log(this);
this.Show();
That would hide the form while the 2nd is show. However, passing the main
form as the owner of the dialog should keep it shown above it.
If you dont want the 2nd form to be model, you would need to handle the
OnClosed event to show the main form.
HTH
--
Ciaran O''Donnell http://wannabedeveloper.spaces.live.com
"Todd Jaspers" wrote:
Hey guys,
I've got a MAIN form, which I have a series of navigational buttons on.
When I open a secondary form from that form, I'd like to be able to HIDE the
original form. The reason is, if the user wants to minimize the application
so that he / she can then do something else, I don't want them to immediately
see the original form.
On the other hand, when they exit from the 2nd form, I'd like for the
original form (the MAIN screen) to re-appear.
How can I do this?
Any ideas?
Thanks!
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: dmiller23462 |
last post by:
Hi guys....I have absolutely NO IDEA what I'm doing with Javascript
but my end result is I need two text boxes to stay hidden until a
particular option is selected....I've cobbled together the JavaScript
in this code from a couple different sites but I'm not 100% sure what
each line is doing...This is the ASP code that I'm using for the
page....Take a look at the JavaScript code and please let me know what
each line is doing....I have been...
|
by: Mark |
last post by:
Hi All,
I am trying to use the function found on the MVP site
http://www.mvps.org/access/api/api0019.htm to hide the Access window. I must
be missing something as I keep getting an error message: "You entered an
expression that requires a form to be the active window".
I have a popup form set to open when the DB is opened. On the open event of
the form, I have the following code: fSetAccessWindow (SW_HIDE) as
instructed on the web page....
|
by: FP |
last post by:
I'm new to Java Script.
I'm displaying comments people have made. Below each persons' comment
I want to add 2 buttons "Reply" and "Amend". Clicking "Reply" would
display an empty text field below the comment with a spell check &
submit button. Clicking "Amend" would display the same buttons & text
field but pre-populated with the original comment.
Using Java Script how do I show / hide the text field in my list of
comments but have...
|
by: gene kelley |
last post by:
I have a dialog form, frmDetails, that is opened from the main form:
frmDetails.ShowDialog()
The only way I have provided to close this dialog is via the "X" button.
If frmDetails is just closed as normal, there is no visual problem (no repainting) with the main
form.
Now, I add this code to the the FormClosing event in the dialog, frmDetails:
|
by: livefreeordie |
last post by:
Hi,
I'm part of a 5-person team that develops websites for our company. I
need to use the ftp_* functions to find some files on another file
server. I need to authenticate to the file server using my username &
password but I don't want to have it right there in the script in plain
text.
Any suggestions?
| |
by: jeff |
last post by:
I am attempting to be able to show and hide a form called viewAllForm.
I declared an instance of the form in a module.
Public viewAllForm As New frmViewAll
However I keep getting runtime errors when I close and try and show it
again. What is the proper way to do this? I only want 1 open at a time.
They can cover it up and leave it open if they want. But whenever they
click to show it I want it to come to the surface and/or to load if it...
|
by: rynato |
last post by:
I have a form which the user fills out to enter some data.
If there already exists an uncompleted session - say, the user started
entering some data but had to stop to do something else - the user has
the option of selecting that session from a drop-down menu (think
<form><select><option>....</option></select></form>). The method for
that particular form is set to 'GET' and the action is
$_SERVER. The <selecttag has a bit of javascript...
|
by: sara |
last post by:
Hi -
Is it possible to hide the detail section of a report at run time?
I have a report that prints all details, with summary lines. The user
would like the report ALSO with just summary lines.
It seems the simplest thing is to run the code (see below) once with
the detail section showing, and a second time hiding the detail
section. I can't figure out the code to do that and don't see it
posted.
|
by: Paul Brady |
last post by:
First, apologies iif this is an old problem. I do read this group,
but I may have missed it.
When I open a form in A2K to put data into a record (or create a
new record), all is well provided I do not touch the wheel on top of
the mouse. I can do anything else with the mouse, that is, move it
around the form and click on controls. But if I turn the wheel,
Access closes out the current form record and begins to scroll up or
down thru...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |