473,511 Members | 15,384 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem with Form/SpliContainer/TreeView/AddOwnedForm ..

hello

I use the framework2.0

When you have a Form which contains a usercontroll which contains a
splitcontainer
which contains a TreeView in the left panel of the splitcontainer. Then when
the text
of a treenode is too long for the width of the left panel of the
splitcontainer, a tooltip
will appear with the text of the treenode when the mouse is hover this
treenode.
my problem :

in the code I got, I have a Form which contains a usercontrol which contains
a
splitcontainer which contains a TreeView in the left panel of the
splitcontainer.

But on the Form there is a handler for the Load event and in the Load event,
the usercontrol is removed from the form and added in a new Form and then
AddOwnedForm is used...
it works fined but the tooltip does not appear anymore when the mouse is
hover
a treenode :(

the code :

private void MainForm_Load(object sender, EventArgs e)
{
SuspendLayout();
OwnedForm f = new OwnedForm();
ArrayList l = new ArrayList();
foreach (Control c in Controls)
l.Add(c);
Controls.Clear();
f.SuspendLayout();
foreach (Control c in l)
f.Controls.Add(c);
f.ResumeLayout();
AddOwnedForm(f);
f.Show();
ResumeLayout();
}

what's wrong
thanks a log for your help
Didier
Jan 3 '07 #1
0 1425

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

Similar topics

3
2299
by: ThunderMusic | last post by:
Hi, I'm trying to have a MSN Messenger like form/app closing behavior. When I click on the X button, I only want the form to disappear and when I double-click on the notify icon or right-click...
3
821
by: feel | last post by:
Goin' crazy with this recursive function ported from delphi... I send a string like DirA/ DirB /DirC but i get in the treeView each one in a new node.Cant get the child node....!! -DirA -DirB...
2
6818
by: JaguarX | last post by:
I have an application that needs a window to stay on top of the other ones, I thought that TopMost = true would be suitable for this feature but it also makes this window to stay on top of all other...
2
2117
by: Mark | last post by:
I got this code from the Internet. Demo on the site works fine but downloaded version is not. I am a very new to .NET, I cannot figure this out, please help. Here is the code: ASPX code: <%@...
7
2084
by: Andrew Christiansen | last post by:
Hey everyone. I have Visual Basic .NET 2003 and am trying to show images on a treeview control. I have the imagelist on the form filled with images, and have the ImageList property of the...
4
2851
by: Jeff Beem | last post by:
I have a class that inherits from TreeView. The treeview has tooltips for the nodes but they're showing up behind the form. Has anyone seen this? Are there any known fixes? Thanks in advance,...
3
1139
by: Hrvoje Voda | last post by:
I have two forms. One is a main form and the other is login form. When I call login form I would like to see in the background a main form. But it is visible only when a main form is maximized. Is...
3
1951
by: Franky | last post by:
Been having a problem using a treeview. Work great the first time the form containing it is entered but not the second time. Took a while to create a small sample that exhibits the problem, but...
4
2199
by: Delphiscn | last post by:
How to show a ABOUT Form???????? Hello Everyone: I use C# want to Create a Project. In my project. there are two forms. One is main form, and another is a about form. In the about form there...
0
7242
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
7138
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
7353
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,...
0
7418
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...
1
7075
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...
0
3212
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1572
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 ...
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
446
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...

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.