Results 1 to 5 of 5

Thread: Window transperancy

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2002
    Location
    Australia
    Posts
    635

    Window transperancy

    How would I create a transperant form in VB.NET (enabled through a menu item ?
    A.A. Fussy
    Babya Software Group

  2. #2
    In the Form's property window. Set property Opacity < 100%.

    Or at runtime:

    VB Code:
    1. me.Opacity = .50

    ^oops
    Last edited by Craigg; Nov 5th, 2003 at 11:52 AM.

  3. #3
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    the only problem with using Opacity is that all controls on the form will gain the same amount of transparency
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

  4. #4
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    In the Form's property window. Set property Opacity < 100%.

    Or at runtime:


    visual basic code:--------------------------------------------------------------------------------
    me.Opacity = 50
    sorry to correct you but its

    VB Code:
    1. me.Opacity = 0.50


    opacity is a double and works from a range 0.0 to 1.0 thus 0.50 is 50%
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  5. #5
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    Originally posted by dynamic_sysop
    the only problem with using Opacity is that all controls on the form will gain the same amount of transparency
    So he must set a transparent key for the form and set the back color of form to that color. Now an issue arises. If the graphic card supports transparency in 32 bit color, then the controls that have the same back color as the form will be shown transparent but still register mouse, if not the controls would not be shown transparent. However in 16 bit mode they will be shown transparent and don't register mouse. Weird.
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

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