|
-
Oct 8th, 2023, 07:04 AM
#1
Thread Starter
Hyperactive Member
[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/.
-
Oct 9th, 2023, 02:46 PM
#2
Thread Starter
Hyperactive Member
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.
-
Jul 12th, 2024, 07:04 AM
#3
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|