473,669 Members | 2,458 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Supressing Form Popup

Tim
Hi,
I have have a program containing two forms that are
open at the same time. The main form updates the second
when the user enters input by adding a control to it. My
problem is that when the second form (which is in the
backgroud) is updated it suddenly jumps to the top of the
z-order although it does not have focus. Is there any way
to keep it from automatically bringing itself to the front
when a control is added to it by the other form? I would
much rather prefer that it would stay behind the main
window where I put it.

Thanks, Tim
Nov 20 '05 #1
3 1343
What you could possibly do, is move the update code to only fire when the
form is closed or loses focus, rather than when it is updated. This way,
the second form won't be updated until the main form is closed or loses
focus, and hence, won't force itself to the top.

Hope this helps,

Mun

--
Munsifali Rashid
http://www.munsplace.com/

"Tim" <ar********@dis cussions.micros oft.com> wrote in message
news:02******** *************** *****@phx.gbl.. .
Hi,
I have have a program containing two forms that are
open at the same time. The main form updates the second
when the user enters input by adding a control to it. My
problem is that when the second form (which is in the
backgroud) is updated it suddenly jumps to the top of the
z-order although it does not have focus. Is there any way
to keep it from automatically bringing itself to the front
when a control is added to it by the other form? I would
much rather prefer that it would stay behind the main
window where I put it.

Thanks, Tim

Nov 20 '05 #2
Tim
Thank you for you help. I wanted to allow the user to see
updates in the second form as they were working in the
main form. I would have put the information that is
contained in the second onto the main form - but the user
needs to be able to resize the information frame to see
all of it (and there would be no room on the main form).
Does anyone know if this same problem would happen if I
put the two forms into an MDI application?

-Tim
-----Original Message-----
What you could possibly do, is move the update code to only fire when theform is closed or loses focus, rather than when it is updated. This way,the second form won't be updated until the main form is closed or losesfocus, and hence, won't force itself to the top.

Hope this helps,

Mun

--
Munsifali Rashid
http://www.munsplace.com/

"Tim" <ar********@dis cussions.micros oft.com> wrote in messagenews:02******* *************** ******@phx.gbl. ..
Hi,
I have have a program containing two forms that are
open at the same time. The main form updates the second
when the user enters input by adding a control to it. My problem is that when the second form (which is in the
backgroud) is updated it suddenly jumps to the top of the z-order although it does not have focus. Is there any way to keep it from automatically bringing itself to the front when a control is added to it by the other form? I would much rather prefer that it would stay behind the main
window where I put it.

Thanks, Tim

.

Nov 20 '05 #3
Cor
Hi Tim,

Is it not posible for you to set that form minimized

Just a thought?

Cor
Thank you for you help. I wanted to allow the user to see
updates in the second form as they were working in the
main form. I would have put the information that is
contained in the second onto the main form - but the user
needs to be able to resize the information frame to see
all of it (and there would be no room on the main form).
Does anyone know if this same problem would happen if I
put the two forms into an MDI application?

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
2542
by: Lorem Ipsum | last post by:
interesting! I just found a page in which Explorer's View Source does nothing! How did they do that?
3
1325
by: Herb Stull | last post by:
Hello All, I'd like for my ASP.NET application to look like an application and not have to display the menu and toolbars in the browser window. In order to do this now I use a response.write and imbed javascript to do window.open and include parameters to suppress these items. This causes problems for users that have a popup stopper installed as the resulting window is a popup and is usually suppressed.
18
2959
by: Colin McGuire | last post by:
Hi - this was posted last weekend and unfortunately not resolved. The solutions that were posted almost worked but after another 5 days of working on the code everynight, I am not further ahead. If you do have any ideas I would really like to hear them. Thanks Colin - 0 - 0 - 0 - I want a glorified popup/context menu on a button that shows only when
4
8156
by: jwlum | last post by:
I have the following problem under Internet Explorer only: 1. User fills out form data (myform.php) and clicks a button that fires myFunction() 2. myFunction() spawns a "hello, world" popup page via window.open 3. myFunction() submits the main page's form via document.form.submit() 5. User closes popup window and clicks browser's Back button to return to form entry page 6. All the form data that the user had filled out is now blank...
4
8831
by: Macbane | last post by:
Hi, I have a 'main' form called frmIssues which has a subform control (named linkIssuesDrug) containing the subform sfrmLink_Issues_Drugs. A control button on the main form opens a pop-up form which allows me to edit the record in the subform. What I want to happen is for subform with the new edits to be updated on the main form when I close the popup. I'm sure this is a very small bit of code in the the 'On close' event for the popup...
3
2769
by: cmo | last post by:
Well I hope I this isn't too nebulous of a problem. The problem I currently have is this: I have a button in a form that opens up a javascript/css poup that has an input field and two ahref links for ok and cancel, both of which call the popup's toggle() method (same thing that is called from the button). The form that this button is in has fields that can be added or removed by the user. Everything works great in firefox and netscape,...
2
1795
by: CJONES | last post by:
I have a main form with a combo box where if a specific customer is selected a popup form opens and additional information required for this customer is entered into the form. Data from the main form and popup form is stored in the same table. I have a field called certification that I would like to use to link the forms.
5
2438
by: Thelma Roslyn Lubkin | last post by:
I am still having trouble trying to use a popup form to allow user to set filters for the main form. The main form is based on a single table. The popup contains 5 listboxes, so the user can filter on 5 fields in this table, and can include as many field values as s/he needs. The popup is reached from a command button on the main form : This button is on the main form, Datasystem:
11
5290
by: V S Rawat | last post by:
using Javascript, I am opening a web-based url in a popup window. MyWin1=Window.Open(url, "mywindow") There is a form (form1) in the url in that popup window, I need to submit that form. How do I submit that form1 from the javascript from my current window? Thanks.
0
8465
marktang
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...
0
8895
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8809
jinu1996
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...
0
7407
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6210
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5682
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();...
0
4386
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2797
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1788
bsmnconsultancy
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...

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.