TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
sgbosley
NA
11
0
Form Display Order
Jan 13 2005 2:34 PM
Hi. I have a problem that is making me crazy. I am trying to display a series of 3 Windows forms. I have a main form which displays a bitmap background and a menu. Once I select a particular menu item, I wish to display Form1. No problem so far. I would like to hide Form1 temporarily and display a custom confirmation box that uses the main form as a background. The problem is that if any other application window is open like the debugger or explorer, the confirmation box is shown on that application rather than on my main form. I have tried moving where I call Form1.Visible to show the form before I call the new one and .SendToBack, and .BringToFront to no avail. Does anyone know a that I can manipulate the z-order? Thank you in advance!!!!! Code example: CBCMsgBox oCBCMsgBox = new CBCMsgBox("Confirmation","Are You Sure You Want To Continue?", "Yes",DialogResult.Yes, "No", DialogResult.No); // this.Visible = false, tried here as well as this.Parent.Visible and .SendToBack and .BringToFront DialogResult dr = oCBCMsgBox.ShowDialog(); //this.Visible = false; // tried here as well if (DialogResult.Yes == dr) { // Show Form2 }
Reply
Answers (
8
)
Importing Compiled .NET UserControl DLLs at runtime
Detecting how form was closed