|
-
Nov 23rd, 1999, 04:49 PM
#1
Thread Starter
Hyperactive Member
I need a function that will collapse all for a given treeview
-
Nov 23rd, 1999, 05:55 PM
#2
Member
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
-
Nov 23rd, 1999, 06:17 PM
#3
Thread Starter
Hyperactive Member
Yeah, I know...
I could do something like this:
Code:
Private Function collapse_all()
Dim i As Integer
For i = 1 To tvwTree.Nodes.Count
tvwTree.Nodes(i).Expanded = False
Next
End Function
But this also tries to collapse Nodes wich don't have children and it also tries to collapse nodes wich are allready collapsed...
At least that's what I think...
-
Dec 6th, 1999, 08:30 AM
#4
New Member
Hi,
Any body know how to make a transperent textbox like a transperent Label
[email protected]
-
Dec 6th, 1999, 03:09 PM
#5
-
Dec 6th, 1999, 05:00 PM
#6
PowerPoster
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,
-
Dec 6th, 1999, 05:00 PM
#7
PowerPoster
-
Dec 6th, 1999, 05:01 PM
#8
PowerPoster
Whoops, stuffed that one up! Sorry for the double-reply
-
Apr 11th, 2002, 03:50 AM
#9
Fanatic Member
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,
/: Tim :\____________________
\: VB, HTML, ASP, VBScript, QBASIC, JavaScript :/
-
Apr 11th, 2002, 04:34 AM
#10
Frenzied Member
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
-
Apr 11th, 2002, 09:37 AM
#11
Fanatic Member
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..

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,
/: Tim :\____________________
\: VB, HTML, ASP, VBScript, QBASIC, JavaScript :/
-
Aug 13th, 2002, 11:33 AM
#12
PowerPoster
Merrion: Does this work with Win98 ?
-
Aug 13th, 2002, 11:39 AM
#13
Frenzied Member
I don't have Win9x so I couldn't say - but MSDN seems to indicate that it would...
-
Aug 13th, 2002, 11:46 AM
#14
PowerPoster
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 -.-*
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|