none
How to call this function with a click, hover, or just on a timer in visual studio RRS feed

  • Question

  • The following function creats a 2nd form that fills the entier background, it is similar to the UAC in Windows (the fadeing part):

    Public Shared Function Plexiglass(dialog As Form) As DialogResult
        Using plexi = New Form()
            plexi.FormBorderStyle = FormBorderStyle.None
            plexi.Bounds = Screen.FromPoint(dialog.Location).Bounds
            plexi.StartPosition = FormStartPosition.Manual
            plexi.AutoScaleMode = AutoScaleMode.None
            plexi.ShowInTaskbar = False
            plexi.BackColor = Color.Black
            plexi.Opacity = 0.45
            plexi.Show()
            dialog.StartPosition = FormStartPosition.CenterParent
            Return dialog.ShowDialog(plexi)
        End Using
    End Function

    Thank You!


    • Edited by DonkinD Monday, January 5, 2015 2:08 AM
    Monday, January 5, 2015 2:07 AM