Results 1 to 14 of 14

Thread: Transperent Textbox

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309

    Post

    I need a function that will collapse all for a given treeview

  2. #2
    Member
    Join Date
    Aug 1999
    Posts
    52

    Post

    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

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309

    Post

    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...

  4. #4
    New Member
    Join Date
    May 1999
    Posts
    6

    Post

    Hi,
    Any body know how to make a transperent textbox like a transperent Label

    [email protected]

  5. #5
    Hyperactive Member onerrorgoto's Avatar
    Join Date
    Aug 1999
    Location
    Sweden
    Posts
    330

    Post

    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]



  6. #6
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923

    Post

    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,

  7. #7
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923

    Post

    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

  8. #8
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923

    Post

    Whoops, stuffed that one up! Sorry for the double-reply

  9. #9
    Fanatic Member tim_l_012's Avatar
    Join Date
    Mar 2001
    Location
    Next to a Coffee Cup.
    Posts
    641
    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 :/

  10. #10
    Frenzied Member MerrionComputin's Avatar
    Join Date
    Apr 2001
    Location
    Dublin, Ireland
    Posts
    1,616
    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
    ----8<---------------------------------------
    NEW - The .NET printer queue monitor component
    ----8<---------------------------------------
    Now with Examples of use

  11. #11
    Fanatic Member tim_l_012's Avatar
    Join Date
    Mar 2001
    Location
    Next to a Coffee Cup.
    Posts
    641
    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 :/

  12. #12
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Merrion: Does this work with Win98 ?

  13. #13
    Frenzied Member MerrionComputin's Avatar
    Join Date
    Apr 2001
    Location
    Dublin, Ireland
    Posts
    1,616
    I don't have Win9x so I couldn't say - but MSDN seems to indicate that it would...
    ----8<---------------------------------------
    NEW - The .NET printer queue monitor component
    ----8<---------------------------------------
    Now with Examples of use

  14. #14
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    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
  •  



Click Here to Expand Forum to Full Width