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

Need ghost label to appear over Derived TreeView

I have been using a label with the TreeView control - to
simulate the ghost image of a node during drag/drop (so
that a ghost of the node appears to be floating next to
the cursor on a drag/drop).

This works peachy when I had a form that used the TreeView
control (from Microsoft).
The time came that I needed to change the TreeView - so I
created a control that inherited from the TreeView class.

Now with this derived class, everything works - except for
the fact that the "ghost" label will not appear over my
derived tree view. I know that I am setting the position
right, because if I move the cursor to the far right side
of the derived TreeView control I can see the "ghost"
label. However the "ghost" label refuses to render itself
over the derived TreeView class. I have compared all of
the properties between my TreeView and derived TreeView
controls and they are the same....

Does anyone have any idea???

Thanks very much.
Peter
Nov 15 '05 #1
2 2749
I placed the label over the control and realized that it's
zorder must be behind the control. So I used the "Send to
Front" option in the design view to fix the problem.

However, this still doesn't really make me happy. Why
doesn't Microsoft allow you to do this programatically
through some property? If you create a label control
through code (not design view), then how do you set this
property to "Bring to Front"????
Nov 15 '05 #2
Duh... I needed the ".BringToFront" method.
Sorry for my stupidness.

One thing I was trying to do was to have a label control
inside my derived TreeView class and to have that label
control appear in front of the rest of the image. I still
couldn't get that to happen - even with
the ".BringToFront" method. I guess I will need to pass a
reference to the label in via a function, set
the ".BringToFront", and manipulate it's position in the
derived control.
Nov 15 '05 #3

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

Similar topics

2
by: Bonj | last post by:
Hello Can anyone assist with the following class hierarcy problem? I have a series of window classes, the object model currently being as such: Window / | \ / | \...
4
by: hzgt9b | last post by:
Using VS.NET 2003, VB: I have a TreeView object with lots of nodes. The treeview is docked on the left side of my main from in a splitter. I want to set the splitter's initial width to allow all...
0
by: nevin | last post by:
I have a TreeView control which I progmatically (is that a word?) add a node to the root node BeginEdit() on that node and then want the user to change the name of it. Exactly as what happens when...
1
by: Tim Marshall | last post by:
Does anyone else get "ghost" VB editor windows appear on their computers when developing in Access 2003? These are VB editor windows with no menu items and a grey empty background. I usually...
0
by: bbcrock | last post by:
I do not have a link to point you to at this time, sorry. It's an internal application. I have some JS code that hides the current div, sets the tabnumber passed in as the current tab number,...
1
by: bbcrock | last post by:
I do not have a link to point you to at this time, sorry. It's an internal application. I have some JS code that hides the current div (group1Tab1), sets the tabnumber passed in as the current...
2
by: =?Utf-8?B?QWxleCBLLg==?= | last post by:
Hi all My TreeView has unicode and english labels. The treeview shows OK on the screen. When I am trying to get an item's label using TVM_GETITEM API message, the buffer returned by SendMessage...
12
deephill
by: deephill | last post by:
hi i need form dependency. Can u check below code? <p>1. Are you married?</p> <p>
0
by: tweakmy | last post by:
Hi to all expert, ladies coders and gentlemen coders, I m quite newbie in this. I just started vb.net not long ago..because i was too crazy bout making an application for my own phone. as for now, i...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
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...

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.