Results 1 to 9 of 9

Thread: [RESOLVED] [2005] AppBar question. Anyone with WS_EX_TOOLWINDOW experience is welcomed!!

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2006
    Location
    North Cackalaki
    Posts
    28

    Resolved [RESOLVED] [2005] AppBar question. Anyone with WS_EX_TOOLWINDOW experience is welcomed!!

    Hello Everyone, So, i've done my research and my appbar is working "almost" perfect. The problem i'm having is that when the System.Windows.Forms.CreateParams.ExStyle property is set to &H80, I am unable to set form opacity which is truely what this project needs.

    I've tried a lot of things but I'm open to suggestions even IF i've already tried them.

    Here is how you can replicate the error.

    1. Create a new VB.NET 2005 Windows Application.

    2. Paste this code within the class in form1.vb

    VB Code:
    1. Protected Overrides ReadOnly Property CreateParams() As System.Windows.Forms.CreateParams
    2.         Get
    3.             Dim cp As CreateParams = MyBase.CreateParams
    4.             cp.Style = &HC00000 ' WS_CAPTION
    5.             cp.Style = &H800000 ' WS_BORDER  
    6.             cp.ExStyle = &H80& Or &H8& ' WS_EX_TOOLWINDOW | WS_EX_TOPMOST
    7.  
    8. 'Me.Opacity = 0.75
    9.  
    10.             Return cp
    11.         End Get
    12.     End Property

    Again, this is for an AppBar program. I am just totally stuck on this. I needed to remove the titlebar... that's why I have the .Styles there. Opacity works fine when I take away the .ExStyle property, but as soon as I turn the form into a toolwindow using &H80 or &H8, the opacity property doesn't work.

    Is there a work around to get the opacity to show up on the form?

    By the way,
    VB Code:
    1. cp.ExStyle = &H80& Or &H8& ' WS_EX_TOOLWINDOW | WS_EX_TOPMOST

    is required for the rest of the program to function properly. Removing that line for the opacity is not an option.
    Last edited by La Jiraffa; Dec 19th, 2006 at 01:26 AM.
    Phillip Dieppa
    VB.NET Newbie 2.0


    AppBar Example

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