Hi guys, I'm designing a form and trying to get different opacity values for different controls. How should i do it??
eg. clear visible text floating over 50% opaque form.
AnkitGuru
-2
Light Poster
Recommended Answers
Jump to PostHere's a start.up w/2 Forms.
Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load Me.Opacity = 0.5 Form2.Show(Me) '// keeps Form2 onTop of Form1. End Sub
Private Sub Form2_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load Me.BackColor = Color.Azure '// …
Jump to PostForm2.Show(Me)'// add "Me" to your code and hope it helps. xD
And you should be able to remove
Me.TopMost = True
from Form2_Load..btw, I would create a Sub for Form2.Size and use that as needed. Makes it easier to manage.:)
All 6 Replies
codeorder
197
Nearly a Posting Virtuoso
AnkitGuru
-2
Light Poster
AnkitGuru
-2
Light Poster
codeorder
197
Nearly a Posting Virtuoso
AnkitGuru
-2
Light Poster
codeorder
197
Nearly a Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.