![]() |
|
[.NET] Bootstrap Alerts - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] Bootstrap Alerts (/showthread.php?tid=5208850) |
Bootstrap Alerts - VmX5 - Mar 19, 2016 I'm very bored and I decided to recreate Bootstrap's Alerts with .NET GDI. It's quite simple to make but I thought I'd release something.
You may change the Title and text of each alert. You may set the "AlertType" Property to switch between Success, Info, Danger, and Warning. This is the alert I recreated in .NET . ![]() This is the original Bootstrap alerts. ![]() I used tusharthegreat's Perfect Rounded Rectangle tutorial to create the round edges. Source Vb | C# C# version was translated via Telerik's online translator so some parts might be broken in the C# version. * - SIM-1676753 - Mar 19, 2016 1. Remove random spaces. 2. Follow naming conventions. 3. Split up variables (no disgusting one liners). 3. Split your code up. 4. Make use of the constructor and use it to declare default variables. http://pastebin.com/52FUXY3q * - VmX5 - Mar 19, 2016 (Mar 19, 2016 07:15 PM)Mr. Trvp Wrote: 1. Remove random spaces. Thanks for the tips, I'll be sure to remember them the next time I code! :D * - Hawk HF - Mar 20, 2016 Reminds me of my old Bonfire theme.
* - VmX5 - Mar 20, 2016 (Mar 20, 2016 08:35 AM)Hawk HF Wrote: Reminds me of my old Bonfire theme. oooo That looks nice! did you ever release it? * - grady - Mar 20, 2016 (Mar 20, 2016 08:35 AM)Hawk HF Wrote: Reminds me of my old Bonfire theme. Those icons are in poor taste, really don't go with the theme. :c * - Hawk HF - Mar 20, 2016 (Mar 20, 2016 01:09 PM)๖ۣۜInfamy Wrote: Those icons are in poor taste, really don't go with the theme. Meh, idc. It was just to show that the buttons supported images. (Mar 20, 2016 01:07 PM)VirusCrafter5 Wrote: oooo That looks nice! did you ever release it? Yeah, but the code is probably awful. I didn't have much experience when I made it. https://hackforums.net/showthread.php?tid=3930319 |