如何使我的tabcontrol看起来像这样 [英] How can I make my tabcontrol look like this

查看:101
本文介绍了如何使我的tabcontrol看起来像这样的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我想知道如何让visual studio中的tabcontrol看起来像这样:



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



我已经尝试将外观更改为按钮,但它看起来并不一样。



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





请帮助,谢谢!

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!

推荐答案

亲爱的ozthe1337,



此处我发送解决方案点按点,检查一下。 ..



1.你想创建标签:

一般,盾牌,日志,排除



在WINFORM项目中。



2.在表格上拖动TAB CONTROL



3.选择TAB CONTROL属性,转到TabPages属性,然后单击收集按钮。



4.单击按钮后,将打开TabPage Collectin Edition。更改标签的标题转到

外观 - >文本属性。



5.根据需要更改图形用户界面。



我认为你需要这个解决方案。

如果是你的解决方案,请标记为解决方案。



或者回归基本



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



我试图给你解决方案。



祝你好运解决方案。

谢谢。

问候,

Manoj Kalla
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


[对另一个问题的答案被删除,不公平。]



对不起,我正在回答d以这种不寻常的方式提出问题;我可以看到删除的问题非常重要。当你使用 Thread.Suspend Thread.Release 时,这是一个问题。



这是我的回答:



在显示的代码中没有的错误,它在调用这两种方法的代码中。这条消息不仅仅是直截了当的。这是方法暂停恢复的工作方式:当状态已经暂停时,线程不能再次被暂停,当状态未暂停时,线程无法恢复。



在您对已删除问题的评论中,您说您已解决问题。不,你没有。你现在面临更大的问题。



更重要的是,这两个线程已被弃用,因为它们确实不安全。事实上,你永远不应该使用它们:

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 [ ^ ]。



可能你完全忽略了使用这些方法时应该显示的编译器警告,因为它们标有过时的属性。这对你不好,真的很糟糕。



为什么这些方法不安全?这很明显,但不容易解释;正如你所看到的,MSDN文档并没有真正解释背景,但我试着在这里解释一下:我开发的安全性dll [ ^ ]。



在之后,我在过去的答案中解释了正确和安全的暂停线程技术: thread.suspend,thread.resume methods [ ^ ]。



如果有什么不清楚的话你,请问一些后续问题,只是从不使用不安全的技术,否则你将面临很难发现的令人讨厌的问题。 (特别是你忽略了警告。:-))



注意:请尝试将你的代码示例放在你的问题帖子中,而不是引用不同站点上的代码示例;它使阅读更加困难。



-SA
[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 : 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


这篇关于如何使我的tabcontrol看起来像这样的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆