Make a textbox transparent-VBForums
Results 1 to 11 of 11

Thread: Make a textbox transparent

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2006
    Posts
    100

    Make a textbox transparent

    how cam i do this in order to appear only the contets-text- and not the textbox?

  2. #2
    Fanatic Member amrita's Avatar
    Join Date
    Jan 2007
    Location
    Orissa,India
    Posts
    888

    Smile Re: Make a textbox transparent

    Quote Originally Posted by panais
    how cam i do this in order to appear only the contets-text- and not the textbox?
    1. Make textbox's border style to :0-None.
    2.Back color = forms ' back color

  3. #3
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,402

    Re: Make a textbox transparent

    Linking back to your oter post...

    Have a look at post #7 by BushMobile: http://www.vbforums.com/showthread.p...parent+TextBox
    Handy References:
    MSDN Library
    ADO Tutorial Excel Tutorial MZTools (VB6)

    • Please pull down the Thread Tools menu and click the 'Mark Thread Resolved' button, or alternately edit your original post and add "Resolved" or place a in the subject when your question(s) have been answered.
    • Please use code tags [highlight=vb] your code goes here between the tags [/highlight] when posting code.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Mar 2006
    Posts
    100

    Re: Make a textbox transparent

    Quote Originally Posted by amrita
    1. Make textbox's border style to :0-None.
    2.Back color = forms ' back color

    will it work if i have a picture in my picturebox?

  5. #5
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,402

    Re: Make a textbox transparent

    No......

    (use a Transparent TextBox, or RTBox)
    Handy References:
    MSDN Library
    ADO Tutorial Excel Tutorial MZTools (VB6)

    • Please pull down the Thread Tools menu and click the 'Mark Thread Resolved' button, or alternately edit your original post and add "Resolved" or place a in the subject when your question(s) have been answered.
    • Please use code tags [highlight=vb] your code goes here between the tags [/highlight] when posting code.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Mar 2006
    Posts
    100

    Re: Make a textbox transparent

    Quote Originally Posted by Bruce Fox
    No......

    (use a Transparent TextBox, or RTBox)

    ok.because i am new in vb6 where can i find transparent textbox?

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Mar 2006
    Posts
    100

    Re: Make a textbox transparent

    instead of :
    VB Code:
    1. Set Txts(j) = Me.Controls.Add("Vb.TextBox", "cmdButton" & Me.Controls.Count, Picture1)

    what can i use?

  8. #8
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,402

    Re: Make a textbox transparent

    where can i find transparent textbox?
    I think there was an example in the link I posted above.
    (PS. make the Search function on this Forum your friend )
    Handy References:
    MSDN Library
    ADO Tutorial Excel Tutorial MZTools (VB6)

    • Please pull down the Thread Tools menu and click the 'Mark Thread Resolved' button, or alternately edit your original post and add "Resolved" or place a in the subject when your question(s) have been answered.
    • Please use code tags [highlight=vb] your code goes here between the tags [/highlight] when posting code.

  9. #9
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: Make a textbox transparent

    he mean Rich Text Box control

  10. #10
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,402

    Re: Make a textbox transparent

    [QUOTE=panais]where can i find transparent textbox?[QUOTE]

    It's a regular TextBox - just modified. Take you pick from here: http://www.vbforums.com/search.php?searchid=1157979
    Handy References:
    MSDN Library
    ADO Tutorial Excel Tutorial MZTools (VB6)

    • Please pull down the Thread Tools menu and click the 'Mark Thread Resolved' button, or alternately edit your original post and add "Resolved" or place a in the subject when your question(s) have been answered.
    • Please use code tags [highlight=vb] your code goes here between the tags [/highlight] when posting code.

  11. #11
    Lively Member Moneybucks's Avatar
    Join Date
    Apr 2006
    Location
    Kingston Upon Thames -UK
    Posts
    123

    Re: Make a textbox transparent

    You can find a rich text box in the control list, default is it's on the left.
    You can make a transparant text box by inserting a new normal textbox, and then changing two of it's properties.

    These are:
    VB Code:
    1. Text1.BorderStyle = 0 'In my version of VB this also changes the background colour of the textbox to match the forms colour. This removed the border You can also do this in design view, type in the above to do this in runtime.
    2. Text1.BackColor = -2147483643 'This sets the background of the textbox to the default colour for forms in Windows XP. In design view, set the backcolour setting to "Button Face"
    So to clarify, In runtime include

    VB Code:
    1. Text1.BorderStyle = 0
    2. Text1.BackColor = -2147483643

    and in design view set the BackColour to "Button Face" and the borderstyle to "0 - None"
    If, somehow, I help you, please rate the post using the scales icon in the left bar <---- .

    Please Use Naming Conventions in your projects! ------\/
    http://www.visibleprogress.com/vb_na...onventions.htm

    Me to Brother
    -Hey, look at this avater I made in about 5 seconds
    -What, morrisons?
    -AGHHHHHH

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.