473,387 Members | 1,859 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,387 software developers and data experts.

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.BringToFront();
But the form stays behind the main form.

Nov 22 '05 #1
2 4005
<ja*****@texeme.com> wrote in message
news:45********************@speakeasy.net...
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.


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(this) or Search.ShowDialog(this)?
Nov 22 '05 #2
Sean Hederman wrote:
<ja*****@texeme.com> wrote in message
news:45********************@speakeasy.net...
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.

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(this) or Search.ShowDialog(this)?


One thing worked:

Before:

Search.BringToFront();

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
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...
39
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...
1
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...
2
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
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...
149
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? --...
1
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...
0
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...
2
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...
39
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...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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...

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.