EvilZone
Programming and Scripting => .NET Framework => : Code.Illusionist November 05, 2013, 05:42:42 PM
-
Hey there, I was wondering how people change their own tabControl design. I saw some of them use drawing system but none of them really explained well how to implement or where to use such peace of code. For example this:
http://stackoverflow.com/questions/7416062/custom-tab-control-in-windows-forms
-
Did you check out this link?
http://www.codeproject.com/Articles/20732/Custom-Tab-control-Revised
-
Did you check out this link?
http://www.codeproject.com/Articles/20732/Custom-Tab-control-Revised (http://www.codeproject.com/Articles/20732/Custom-Tab-control-Revised)
I am reading it and still don't get it. Either my knowledge of English language is lame or somehow I miss the point what that guy is doing over there. I can see he provided source code where we could style our own tabs, but what he missed to tell us is where we implement such thing? Nothing is detailed explained.
-
What have you done with GDI before? What have you done with inheritance before? If you haven't done either of these, forget about making a tab control and try learning these concepts first. It's quite easy to make your own control, but you need to understand a couple things first.
-
What have you done with GDI before? What have you done with inheritance before? If you haven't done either of these, forget about making a tab control and try learning these concepts first. It's quite easy to make your own control, but you need to understand a couple things first.
I never head touch with such field. So, I guess time to learn it =)
-
Here's an example of something random I did with GDI in C# a while back:
(http://i.imgur.com/8bB8Sra.png)
It doesn't need to even be a control. Just see what you can draw. This one I did was animated, and it draws a spiral outwards. To create the positioning, I used some math involving the golden ratio.
I even created a simulated pong game in GDI a few months ago:
(http://i.imgur.com/2cBZa.gif)
I've made graphing controls, buttons, textbox controls and many others as well. It's more of a creativity thing though after you know what you're doing.
-
You did pretty nice job right there, I like it. I started learning part =)
EDIT: I found this: http://www.c-sharpcorner.com/uploadfile/mahesh/c-sharp-tabcontrol/ (http://www.c-sharpcorner.com/uploadfile/mahesh/c-sharp-tabcontrol/) but problem is I don't know how to access that class where he type all this code. None of them ever mention how they get there before editing. Does some of you know how to?
EDIT2: Found it =)
-
It is nice, but there's nothing about GDI in there, just FYI.