Results 1 to 3 of 3

Thread: [RESOLVED] Any dim overlay on a form ideas?

  1. #1

    Thread Starter
    Hyperactive Member pourkascheff's Avatar
    Join Date
    Apr 2020
    Location
    LocalHost
    Posts
    384

    Resolved [RESOLVED] Any dim overlay on a form ideas?

    Hi all o7
    The idea is when you are about to terminate using the app, some sort of dark overlay covers all the background and a dialog or maybe a control (latter one would be tricky) appears. Fade in/out effect is not necessary but if it is possible to implement, I would be delighted. A faster version of Win98 shutdown decision making window.

    A semi-transparent shape (or a newer blurry fluent shape) is needed. Another low-opacity form would not be OK since the control I'd like to pop up is a 3rd party radialmenu in center of screen.

    Entire project is vb.net windows form based (not a WPF fan) but I'm a trial user of devexpress. Did not find any related material there (their forum is not a big deal to be honest or maybe QAs are not visible to public idk).

    But if someone find their controls easy to perform such thing, I rather use XtraForm. peace/.

  2. #2

    Thread Starter
    Hyperactive Member pourkascheff's Avatar
    Join Date
    Apr 2020
    Location
    LocalHost
    Posts
    384

    Re: Any dim overlay on a form ideas?

    I came up with this idea
    Code:
        Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
            While Me.Opacity > 0.5
                Me.Opacity -= 0.00001
            End While
            MsgBox(CStr(Me.Opacity * 100) & "%")
        End Sub
    
        Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
            While Me.Opacity < 1
                Me.Opacity += 0.00001
            End While
            MsgBox(CStr(Me.Opacity * 100) & "%")
        End Sub
    And it works perfectly fine. Liked the way opacity and background melted together.

  3. #3

    Thread Starter
    Hyperactive Member pourkascheff's Avatar
    Join Date
    Apr 2020
    Location
    LocalHost
    Posts
    384

    Re: [RESOLVED] Any dim overlay on a form ideas?

    Em, Hi. Please ignore the last sentence, "perfectly" part. It depends on host computer resources. In some cases it took me few hours to accomplish.

    It is a closed thread but can someone please implement it through a parallel thread to avoid visual unresponsiveness?

Tags for this Thread

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