473,658 Members | 2,623 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

BringToFront() doesn't work


I launched a form set to an object called Search, from a main form, like
this:
Search.Show();
Search.Activate ();
Search.BringToF ront();
But the form stays behind the main form.

Nov 22 '05 #1
2 4024
<ja*****@texeme .com> wrote in message
news:45******** ************@sp eakeasy.net...
I launched a form set to an object called Search, from a main form, like
this:

Search.Show();
Search.Activate ();
Search.BringToF ront();

But the form stays behind the main form.


Search.Show() alone works for me. Of course, if I click on the main form the
new form goes behind it as the main form gets focus. Is it possible you're
setting the main form to be always on top or something? Alternatively, how
about Search.Show(thi s) or Search.ShowDial og(this)?
Nov 22 '05 #2
Sean Hederman wrote:
<ja*****@texeme .com> wrote in message
news:45******** ************@sp eakeasy.net...
I launched a form set to an object called Search, from a main form, like
this:

Search.Show() ;
Search.Activa te();
Search.BringT oFront();

But the form stays behind the main form.

Search.Show() alone works for me. Of course, if I click on the main form the
new form goes behind it as the main form gets focus. Is it possible you're
setting the main form to be always on top or something? Alternatively, how
about Search.Show(thi s) or Search.ShowDial og(this)?


One thing worked:

Before:

Search.BringToF ront();

I put:

this.SendToBack ();
Nov 22 '05 #3

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

Similar topics

7
4883
by: AnnMarie | last post by:
My JavaScript Form Validation doesn't work at all in Netscape, but it works fine in IE. I made some of the suggested changes which enabled it to work in IE. I couldn't make all the changes because then it didn't work in IE. How can I enable this javascipt form validation to work in Netscape? When I use netscape, none of the alert boxes appear. It submits the form without validating anything.
39
3316
by: Mark Johnson | last post by:
It doesn't seem possible. But would the following also seem a violation of the general notions behind css? You have a DIV, say asociated with class, 'topdiv'. Inside of that you have an anchor (and whatever it contains), associated with class, 'a'. Somewhere else in, 'topdiv', there is a span or element (containing whatever), associated with class, 'b'.
1
3667
by: C# Learner | last post by:
BringToFront() has the desired effect in my app if the notify icon's (system tray icon's) context menu is used. However, I can't BringToFront() in response to a Click event handler. Here's the code: private void showContextMenuItem_Click(object sender, System.EventArgs e) { DoShow(); // BringToFront() in DoShow() will work here.
2
489
by: jabailo | last post by:
I launched a form set to an object called Search, from a main form, like this: Search.Show(); Search.Activate(); Search.BringToFront(); But the form stays behind the main form.
0
1280
by: Kathy D | last post by:
I would like to know if there is something like a BringToFront for the minimize button. I have four four child forms on a parent form and when I minimize them the "box" goes behind another window. The design of the form doesn't allow me to change the size of the window that the minimize hides behind. Can I bring the minimized box to the front?
149
25123
by: Christopher Benson-Manica | last post by:
(Followups set to comp.std.c. Apologies if the crosspost is unwelcome.) strchr() is to strrchr() as strstr() is to strrstr(), but strrstr() isn't part of the standard. Why not? -- Christopher Benson-Manica | I *should* know what I'm talking about - if I ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
1
10745
by: C# Learner | last post by:
BringToFront() has the desired effect in my app if the notify icon's (system tray icon's) context menu is used. However, I can't BringToFront() in response to a the notify icon's Click event handler. Here's the code: private void showContextMenuItem_Click(object sender, System.EventArgs e) { DoShow(); // BringToFront() in DoShow() will work here.
0
1759
by: talljames | last post by:
Getting an unusual problem. I have two layered panels at the same location. panel4 on top and panel5 underneith in a windows form. It starts off with panel4 on top. When I do a panel4.BringToFront() it actually brings panel5 to the front rather than leaving panel4 as the viewed one. regards
2
4506
by: Eric Goforth | last post by:
Hello, I have an MDI VB.NET app that is called from a VB6 app, and it basically lives on top of the VB App. When the user clicks on controls on the VB6 app I do an MDIParentForm.WindowState = FormWindowState.Minimized After the user has clicked on a particular menu item then I want to bring my VB.NET MDI app back on top. I've tried
39
5849
by: alex | last post by:
I've converted a latin1 database I have to utf8. The process has been: # mysqldump -u root -p --default-character-set=latin1 -c --insert-ignore --skip-set-charset mydb mydb.sql # iconv -f ISO-8859-1 -t UTF-8 mydb.sql mydb_utf8.sql mysqlCREATE DATABASE mydb_utf8 CHARACTER SET utf8 COLLATE utf8_general_ci;
0
8427
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
8850
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...
1
8523
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,...
0
7355
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
6178
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
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4334
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2749
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
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.