如何创建此按钮/控件? [英] How To Create This Button/Control ?

查看:128
本文介绍了如何创建此按钮/控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人能帮助我吗?我到处搜索如何创建这个按钮/控件但没什么..请帮帮我..



这里图片: https://lh3.googleusercontent.com/-rc3U6a4Y95k/VES4ViLpmGI/AAAAAAAAAQk/jIDUAUBZ7FA/w467-h381/WhatIsThis.png



谢谢你,我真的希望得到答案。

解决方案

这个按钮离我很远真正的按钮。基本上,这是文本与位图的组合。你可以使用,例如, Label PictureBox 放在用户控件或自定义控件上(谢谢你,Maciej )。使用 DockStyle.Top PictureBox 使用 DockType.Fill ,选择合适的尺寸和填充



不要忘记两个控件上的事件处理程序,例如如点击



-SA


< blockquote>我建​​议从这里开始:

使用Visual开发自定义Windows控件基础.NET [ ^ ]。

演练:创作用户控件使用Visual Basic .NET [ ^ ]

这很简单。正如Sergey所说,你需要使用一些标准控件,比如Label和PictureBox;)

试试!


Can someone help me? I have searched everywhere how to create this button / control but nothing .. please help me ..

here the picture : https://lh3.googleusercontent.com/-rc3U6a4Y95k/VES4ViLpmGI/AAAAAAAAAQk/jIDUAUBZ7FA/w467-h381/WhatIsThis.png

thank you before, i really hope the answer.

解决方案

This buttons are very far from real buttons. Basically, this is a combination of the text with a bitmap. You could use, for example, Label and PictureBox put on a user control or a custom control (thank you, Maciej). Dock the label using DockStyle.Top, and PictureBox using DockType.Fill, choose appropriate sizes and Padding.

Don't forget event handlers on both controls, such as Click.

—SA


I'd suggest to start here:
Developing Custom Windows Controls Using Visual Basic .NET[^].
Walkthrough: Authoring a User Control with Visual Basic .NET[^]
It's quite simple. As Sergey mentioned you need to use few standard controls, like Label and PictureBox ;)
Try!


这篇关于如何创建此按钮/控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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