Results 1 to 4 of 4

Thread: Tab control opacity?

  1. #1

    Thread Starter
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Tab control opacity?

    Is it possible to have the form Opacity set to say 80% but the tab control on the form would be 100% opacity, so the tab would not be transparent at all?

    thnks
    Chris

  2. #2
    Lively Member poggo's Avatar
    Join Date
    Sep 2005
    Posts
    90

    Re: Tab control opacity?

    i guess you can't, because controls inherit parent form's opacity... maybe there's some weird way to accomplish what you want, but i don't how... sorry
    Currently using VB.NET 2005...

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

    Re: Tab control opacity?

    Quote Originally Posted by the182guy
    Is it possible to have the form Opacity set to say 80% but the tab control on the form would be 100% opacity, so the tab would not be transparent at all?

    thnks
    Hi,

    The following example demonstrates how to create a form that is displayed with an opacity level of 75 percent. The example code creates a new form that is positioned in the center of the screen with an Opacity property set to change the opacity level of the form. The example code also sets the Size property to provide a larger sized form than the default size of the form. This example assumes that the method defined in this example is called from another form in an event handler or other method.


    VB Code:
    1. Private Sub CreateMyOpaqueForm()
    2.    ' Create a new form.
    3.    Dim form2 As New Form()
    4.    ' Set the text displayed in the caption.
    5.    form2.Text = "My Form"
    6.    ' Set the opacity to 75%.
    7.    form2.Opacity = 0.75
    8.    ' Size the form to be 300 pixels in height and width.
    9.    form2.Size = New Size(300, 300)
    10.    ' Display the form in the center of the screen.
    11.    form2.StartPosition = FormStartPosition.CenterScreen
    12.  
    13.    ' Display the form as a modal dialog box.
    14.    form2.ShowDialog()
    15. End Sub

    I have nothing to change the opacity for your TabPage.

    sparrow1
    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

  4. #4

    Thread Starter
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: Tab control opacity?

    thanks poggo &sparrow but I wanted the tab to stay 100% visible
    Chris

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