Results 1 to 6 of 6
  1. #1
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919

    Transparent property of text box not being affected

    I have a text box where I've set its Back Style to Transparent. I also have image control with the same height, width and screen positioning as the text box. See screenshot below.

    Click image for larger version. 

Name:	000.jpg 
Views:	9 
Size:	17.5 KB 
ID:	38393

    The intent is for the prompt (image) behind the transparent text box to be visible to the user. While everything looks correct when in design view, the form displays the text box with solid white Back Style. One would immediately suspect that the two controls are not stacked in the proper order but I've checked that several times to insure the image control HAS BEEN sent to the back.

    Any thoughts?

    Bill

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    The easy way I've seen to do this is with the format property of the textbox (a single textbox, not stacked). Try this there:

    @;"Enter search key here"
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919
    Thanks Paul.

    I stumbled upon the issue. Normally both of the two controls are not visible. When the user takes a particular action, both are made visible allowing the user to initiate a search. The problem I was having was that when the action event code ran it included moving the focus to the text box. In doing so, the back style of the text box is automatically set to solid white. I simply removed the SetFocus and I get exactly what I wanted.

    Thanks again,
    Bill

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Sounds like the hard way, but glad you got it working.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919
    Carol likes your way better, so thanks for that!

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I always knew she was the smart one.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 08-22-2018, 04:37 PM
  2. Replies: 9
    Last Post: 02-28-2017, 09:06 PM
  3. Form size affected by tabs in editor!?
    By BayerMeister in forum Forms
    Replies: 6
    Last Post: 04-15-2014, 10:10 AM
  4. Replies: 5
    Last Post: 11-13-2013, 07:08 AM
  5. Transparent text box title on Form?
    By LostInAccess in forum Forms
    Replies: 5
    Last Post: 06-29-2012, 02:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums