I need a function that will collapse all for a given treeview
Printable View
I need a function that will collapse all for a given treeview
hi,
Try this 1..
TreeView1.SelectedItem.Expanded = False
note: this is only collapse the node which is selected..
kandan
E-mail: [email protected]
ICQ: 52774533
Yeah, I know...
I could do something like this:
But this also tries to collapse Nodes wich don't have children and it also tries to collapse nodes wich are allready collapsed...Code:
Private Function collapse_all()
Dim i As Integer
For i = 1 To tvwTree.Nodes.Count
tvwTree.Nodes(i).Expanded = False
Next
End Function
At least that's what I think...
Hi,
Any body know how to make a transperent textbox like a transperent Label
[email protected]
This should simulate a transparent textbox
set these proepries:
Apperance : 0- Flat
Backcolor : Buttonface or whatever your app's backcolor is
Borderstyle : 0- None
Hope this will work for you :)
------------------
On Error Goto Bed :0)
[email protected]
but what can you do to really make it transparent? e.g. if there is a picture on the background. I'm sure API can solve this (it can do everything else :))
thank you
Regards,
but what can you do to really make it transparent? e.g. if there is a picture on the background. I'm sure API can solve this (it can do everything else :))
thank you
Regards,
------------------
- Chris
[email protected]
If it ain't broke - don't fix it :)
Whoops, stuffed that one up! Sorry for the double-reply
hi,
I was wondering if it could go transperent also..
I was using a label and an up or down arrow to allow users to scroll through my label..
but the problem is that this caused major flickerage...
Thanks, :)
To make a window transparent, call the SetWindowLong api call with WS_EX_STYLE index and the existing window ex style + WS_EX_TRANSPARENT
You will need to refresh the window for the transparency to take effect...
HTH,
Duncan
thanks for the help,
bu I just decided that a texbox is the way to go..
you know..
it only wrecks the whole feel of my app.. :(
makes it look poor... :( :( but i'm ok with that..
:D
just kidding!!
It still looks ok, but I would have liked a textbox with no background, like, a BG style with 'Transperent' instead of 'Opaque'...
:(
Thanks anyways, :)
Merrion: Does this work with Win98 ?
I don't have Win9x so I couldn't say - but MSDN seems to indicate that it would...
Same problem here.. but I gave the program to some testers and the win98 and even win2k guys told me the box wouldn't get transparent... I just searched PlanetSourceCode and read a remark, which said it should work on win2k but not on win98..
However, I'd prefer my code to run on win98, too -.-*