Sep 6, 2017 12:19 PM
(This post was last modified: Sep 6, 2017 12:20 PM by cristlol.)
How can i radius graphics or make it glow like orcus i tried searching on google couldn't solve the issue. for example
if take a look closer
The line is glowing. please help. thanks
Sep 6, 2017 02:41 PM
(This post was last modified: Sep 6, 2017 02:41 PM by 0xDEAD10CC.)
You need to draw your graphics with a LinearGradientBrush, this is a pretty trivial example on where to use that class.
Sep 6, 2017 04:20 PM
(This post was last modified: Sep 7, 2017 03:56 AM by cristlol.)
Thanks man it works but not as I expected but it better than my previous one.
DO NOT DEAL WITH THIS MEMBER
By creating a new control you can override the paint event and fill it with a rectangular glow (or blurred control shape). Then just place another control on top centered. The same idea applies to forms since it's technically a control. Instead of inheriting from a 'Control' you would instead use a 'Form' for your base class.
Example:
Link: Control Source
Sep 8, 2017 01:43 AM
(This post was last modified: Sep 8, 2017 01:44 AM by cristlol.)
(Sep 7, 2017 01:50 PM)๖ۣۜDiViN3 Wrote: By creating a new control you can override the paint event and fill it with a rectangular glow (or blurred control shape). Then just place another control on top centered. The same idea applies to forms since it's technically a control. Instead of inheriting from a 'Control' you would instead use a 'Form' for your base class.
Example:
![[Image: MnqaJcA.jpg]](https://i.imgur.com/MnqaJcA.jpg)
Link: Control Source
oh now i get it. Thank you alot. 👍
Sep 9, 2017 09:27 AM
(This post was last modified: Sep 9, 2017 09:27 AM by Sorzus.)
Step 1: Dont use WinForms
In my opinion, changing the theme in a Windows Form application is just nonsense, it's just not made for it. GDI+ is a slow framework (it is a framework that fits exactly the needs of the applications that are intended for WinForms: a simple, standard user interface). If you want and need fancy GUIs with special effects, animations etc. just use WPF. It may be possible that you can also accomplish something like that in WinForms with ugly hacks but in the end, you will have a lot more problems in contrast to just use WPF. The framework I'm using for Orcus is http://mahapps.com/ that already has this glow feature (I did not write that by myself).
(Sep 9, 2017 09:27 AM)Sorzus Wrote: Step 1: Dont use WinForms
In my opinion, changing the theme in a Windows Form application is just nonsense, it's just not made for it. GDI+ is a slow framework (it is a framework that fits exactly the needs of the applications that are intended for WinForms: a simple, standard user interface). If you want and need fancy GUIs with special effects, animations etc. just use WPF. It may be possible that you can also accomplish something like that in WinForms with ugly hacks but in the end, you will have a lot more problems in contrast to just use WPF. The framework I'm using for Orcus is http://mahapps.com/ that already has this glow feature (I did not write that by myself).
Thanks a lot man 🤝
Sep 9, 2017 01:00 PM
(This post was last modified: Sep 9, 2017 01:19 PM by 0xDEAD10CC.)
(Sep 9, 2017 09:27 AM)Sorzus Wrote: Step 1: Dont use WinForms
In my opinion, changing the theme in a Windows Form application is just nonsense, it's just not made for it. GDI+ is a slow framework (it is a framework that fits exactly the needs of the applications that are intended for WinForms: a simple, standard user interface). If you want and need fancy GUIs with special effects, animations etc. just use WPF. It may be possible that you can also accomplish something like that in WinForms with ugly hacks but in the end, you will have a lot more problems in contrast to just use WPF. The framework I'm using for Orcus is http://mahapps.com/ that already has this glow feature (I did not write that by myself).
Winforms not being made for themes is a silly statement. Have you ever seen RadForms from Telerik for Winforms? If it wasn't designed to do basic themes GDI+ wouldn't exist and System.Drawing wouldn't either. It's more efficient to do UI-intensive themes with WPF because it relies more on the GPU, but that doesn't mean basic themes can't or shouldn't be made in Winforms. WPF is just newer technology.
That's like saying Windows 2000 was not designed for calculations because Windows 10 is newer. GDI is not going away anytime soon either.
(Sep 7, 2017 01:50 PM)๖ۣۜDiViN3 Wrote: By creating a new control you can override the paint event and fill it with a rectangular glow (or blurred control shape). Then just place another control on top centered. The same idea applies to forms since it's technically a control. Instead of inheriting from a 'Control' you would instead use a 'Form' for your base class.
Example:
![[Image: MnqaJcA.jpg]](https://i.imgur.com/MnqaJcA.jpg)
Link: Control Source
Update link please
(Feb 22, 2022 04:04 AM)Grooty Wrote: Update link please
He can't since the guy you're quoting is not active anymore. You can try other suggestions like using WPF which is more appropriate.
|