|
-
Apr 4th, 2006, 10:41 AM
#1
Thread Starter
Frenzied Member
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
-
Apr 4th, 2006, 11:41 AM
#2
Lively Member
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...
-
Apr 4th, 2006, 11:49 AM
#3
Re: Tab control opacity?
 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:
Private Sub CreateMyOpaqueForm()
' Create a new form.
Dim form2 As New Form()
' Set the text displayed in the caption.
form2.Text = "My Form"
' Set the opacity to 75%.
form2.Opacity = 0.75
' Size the form to be 300 pixels in height and width.
form2.Size = New Size(300, 300)
' Display the form in the center of the screen.
form2.StartPosition = FormStartPosition.CenterScreen
' Display the form as a modal dialog box.
form2.ShowDialog()
End Sub
I have nothing to change the opacity for your TabPage.
sparrow1
-
Apr 4th, 2006, 01:31 PM
#4
Thread Starter
Frenzied Member
Re: Tab control opacity?
thanks poggo &sparrow but I wanted the tab to stay 100% visible
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|