0Day Forums
AF Button Class - C# Release - Printable Version

+- 0Day Forums (https://0day.red)
+-- Forum: Coding (https://0day.red/Forum-Coding)
+--- Forum: VB.NET (https://0day.red/Forum-VB-NET)
+--- Thread: AF Button Class - C# Release (/Thread-AF-Button-Class-C-Release)



AF Button Class - C# Release - skysail569 - 03-08-2013

Here's a button class I wrote by looking at the nav bar on the forum and trying to manipulate that same style using GDI.

[Image: VCFhc7Q.gif]


RE: AF Button Class - C# Release - semihydrate905916 - 03-08-2013

Thanks for the feedback :smile:

There was no "pressed" button state for the forum navbar buttons, so I kept it that way in the button class itself here. Only a normal, and an "active" state. I started a template assuming 3 states: normal, hover, pressed.

It appears that isn't the way the actual nav buttons are on the forum though so I removed one state.

Btw, adding an image to this would be easy. Just requires a bit of modding on the placement logic for the text, plus the size of the image/icon on the button to keep everything centered.


RE: AF Button Class - C# Release - ochlocracies805346 - 03-08-2013

I'm gonna try to learn C# so this will give me some code to look at thanks. It looks good.