473,404 Members | 2,195 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,404 software developers and data experts.

goofy menu thing in WMI application title bar

Hello,

I would certainly appreciate some feedback to the issue I'm experiencing in
my first major WMI application. When I navigate to a new child form I
usually dispose of the one I'm navigating from, but I often end up with
multiple title bars as shown in the following screenshot. I've tried setting
the child forms' FormBorderStyle = None but that doesn't seem to help.

http://www.senske.com/images/wmi-goof.jpg

Can anyone please give me a few pointers to what I might be doing wrong?

Thanks in advance,

Andre Ranieri

Apr 3 '06 #1
3 1466
Can you post the code that is supposed to open the child window?
"Andre Ranieri" <An**********@discussions.microsoft.com> wrote in message
news:6F**********************************@microsof t.com...
Hello,

I would certainly appreciate some feedback to the issue I'm experiencing
in
my first major WMI application. When I navigate to a new child form I
usually dispose of the one I'm navigating from, but I often end up with
multiple title bars as shown in the following screenshot. I've tried
setting
the child forms' FormBorderStyle = None but that doesn't seem to help.

http://www.senske.com/images/wmi-goof.jpg

Can anyone please give me a few pointers to what I might be doing wrong?

Thanks in advance,

Andre Ranieri

Apr 4 '06 #2
Thanks for your assistance. The problem appears to be happening when I open
a window from the title bar of the MDI parent itself. Here is the code
called from the MDIMain form:

//only one child form allowed at a time: close all other child forms
if(form != this)
{
form.Dispose();
}
}

//create instance of new child form and show it.
Senske.SenskePro.Accounts.frmAccountSearch frm = new
Senske.SenskePro.Accounts.frmAccountSearch();
frm.MdiParent = this;
frm.StartPosition = FormStartPosition.WindowsDefaultLocation;
frm.WindowState = FormWindowState.Maximized;
frm.BringToFront();
frm.Focus();
frm.Show();
Apr 4 '06 #3
I've noticed that when I run the following code snippet there only appears to
be one form here that isn't disposed. However, it appears as if all the
disposed forms still have their title bars present in the MDI parent?
foreach(Form form in this.MdiChildren) //where mdiParent is the MDI
Container...
{
if(form != this)
{

form.Dispose();
}
}
Apr 4 '06 #4

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

Similar topics

2
by: zapazap | last post by:
Dear Snake Charming Gurus, (Was: http://mail.python.org/pipermail/python-list/2004-January/204454.html) First, a thank you to Tim Golden, Thomas Heller, and Mark Hammond for your earlier help...
1
by: Andre Ranieri | last post by:
Hello, I apologize for multiple posting of this question but I used the wrong acronym earlier. I meant to say MDI. I would certainly appreciate some feedback to the issue I'm experiencing in...
66
by: mensanator | last post by:
Probably just me. I've only been using Access and SQL Server for 12 years, so I'm sure my opinions don't count for anything. I was, nevertheless, looking forward to Sqlite3. And now that gmpy...
1
by: teofilo | last post by:
I built this class for simple text based menu, for using with other classes. #ifndef MENU_H #define MENU_H #include <string> using std::string; #include <vector> using std::vector;
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
tracyyun
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...
0
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...

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.