Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
1.67/5 (2 votes)
Hello, I'm wondering how I can make the tabcontrol in visual studio look like this:

http://gyazo.com/1fa92dd941386eea487b62f3fcc83712[^]

I've already tried to change the appearance to buttons, but it doesn't look the same at all.

http://gyazo.com/a3104f4ee8c6e8e60fae9431c38cc44d[^]


Please help, thanks!
Posted
Comments
[no name] 15-Jun-14 19:35pm    
The first thing would be for you to decide the type of application you want to create this tab control for. Then, for a web application, create a CSS for it or other web technology, for Winform create a custom control or for WPF create a style.
ozthe1337 15-Jun-14 22:58pm    
I'm making a winform application
ozthe1337 15-Jun-14 23:02pm    
But I don't know how to make the control. I've tried, but everything I make is never good lol.
Sergey Alexandrovich Kryukov 15-Aug-14 1:39am    
Please, do yourself and everyone a favor: always put all information in your question post, instead of referencing different sites.
Please disregard this note above (scratched out). I did not notice that you actually show a screenshot which is really needed. Unfortunately, there is no an other way.

Now, I'm puzzled: to me, this picture looks like a very usual TabControl (your first link, the second link would not be a problem and is not good enough to bother). So, could you point out the difference?

—SA

Dear ozthe1337 ,

Herewith I am sending solution point by point, check it. ..

1. You want to create tab :
General , Shields, Logs, Exclusions

IN WINFORM project.

2. Drag TAB CONTROL on form

3. Select TAB CONTROL properties, go to TabPages properties and click collection button.

4. After click on button, "TabPage Collectin Edition" will open. Change title of tab go to
Appearance --> Text property.

5. Change graphics user interface as you like in.

I think you required this solution.
If its your solultion, mark as solutions.

Or come back to basic

http://www.c-sharpcorner.com/UploadFile/mahesh/TabControlTutorial11302005235835PM/TabControlTutorial.aspx[^]

I tried to give you solution.

Best of luck to hunting solutions.
Thank You.
Regards,
Manoj Kalla
 
Share this answer
 
[The answer to a different question, which was deleted, unfairly.]

Sorry that I'm answering to the deleted question in this unusual way; I can see that the deleted question was important enough. It was a question when you used Thread.Suspend and Thread.Release.

This is my answer:

The bug in not in the code shown, it is in the code calling those two methods. The message is more than straightforward. This is how the method Suspend and Resume work: when the status is already suspended, the thread cannot be suspended again, when the status is not suspended, the thread cannot be resumed.

In your comment to the deleted question you said that you resolved the problem. No, you didn't. You have much bigger problem now.

Much more importantly, these two threads are deprecated, because they are really unsafe. In fact, you should never ever use them:
http://msdn.microsoft.com/en-us/library/system.threading.thread.resume(v=vs.110).aspx[^],
http://msdn.microsoft.com/en-us/library/system.threading.thread.suspend(v=vs.110).aspx[^].

Probably, you totally ignored the compiler warnings which should be shown on the use of these methods, because they are marked with Obsolete attribute. This is not good for you, really bad.

Why these methods are unsafe? This is pretty obvious, but not so easy to explain; as you can see, MSDN documentation does not really explain the background, but I tried to explain it here: Security on my developed dll[^].

I explained correct and safe technique of suspending threads in my past answer, after [EDIT]: thread.suspend, thread.resume methods[^].

If something is not clear to you, please ask some follow-up question, only never use the unsafe techniques, otherwise you will face really nasty problems which are hard to detect. (Especially of you ignore warnings. :-))

Note: Please, try to put your code sample in your question post, instead of referencing the code sample on a different site; it makes it much harder to read.

—SA
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900