dcsimg
Results 1 to 10 of 10

Thread: object opacity

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2009
    Posts
    534

    Question object opacity

    i'm trying to make screen locker thats why i'm using a form with 0% opacity but the problem is the button and textbox get invisable so how can i fix that?

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,292

    Re: object opacity

    Don't use the form opacity property. Use the form.transparentkey property instead. Set both the form's backcolor AND transparentkey properties to an ugly color that you likely will not use anywhere else in your form.
    Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
    - Abraham Lincoln -

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2009
    Posts
    534

    Re: object opacity

    that wont work because if i did that i'll be able to click the icons with the mouse but if i use form opacity i'll be seeing my desktop but wont be able to use the mouse on it thats the idea but i want the button and textbox to enter the password be 100% opacity

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2009
    Posts
    534

    Re: object opacity

    up...

  5. #5
    Hyperactive Member nagasrikanth's Avatar
    Join Date
    Nov 2004
    Location
    India,Hyderabad.
    Posts
    420

    Post Re: object opacity

    hey new1.. Got a problem some thing like the same earlier to me also.. I have found a post at that time in the same forum which suggested to use 2 different forms and it worked for me.. here is the post fyr..
    http://www.vbforums.com/showthread.php?p=4010760

    all the best
    The Difference between a Successful person and others is not a Lack of Knowledge,
    But rather a Lack of WILL

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2009
    Posts
    534

    Re: object opacity

    well it's good idea but wont work with this kind of application since the forum will be on top of every other windows...i tried to make inputbox but i faced with that issue the locker fourm get on the top of every thing exist or may exist so alt+tap wont be handy
    so any more suggestion
    and thx for every one trying to help me

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2009
    Posts
    534

    Re: object opacity

    up....

  8. #8
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,817

    Re: object opacity

    Hi,

    Use the Form.TransparencyKey.Property for tha.
    Look here.
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2009
    Posts
    534

    Re: object opacity

    Quote Originally Posted by sparrow1 View Post
    Hi,

    Use the Form.TransparencyKey.Property for tha.
    Look here.
    that wont work because if i did that i'll be able to click the icons with the mouse but if i use form opacity i'll be seeing my desktop but wont be able to use the mouse on it thats the idea but i want the button and textbox to enter the password be 100% opacity

  10. #10
    Fanatic Member
    Join Date
    Jul 2009
    Posts
    629

    Re: object opacity

    If there is really no choice, add multiple forms with no form design style set. (Simple control-colored square) with a single control added. Possible edges can be removed using the transparency key.

    I have tried the same (screen selection while having an active background) but for some reason it fails over different operating systems.
    On Windows 7 I could click my form, but in XP I clicked right through.

    If the main form was moveable (and so were the controls added), add a separate moveable form with a LocationChanged handler.

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