Click here to Skip to main content
15,886,519 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
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.
Posted
Comments
Sergey Alexandrovich Kryukov 23-Oct-14 23:40pm    
It is pretty easy, but depends on what do you mean by Button or Control. There are different UI libraries. For which one?
What have you tried so far?
—SA
Member 10973792 23-Oct-14 23:51pm    
i dont know what exactly.. but i want to create something like that. how to create it ? i've try to create something like that using button in vb.net (window form application), but the result is different, not like that. please help me.

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
 
Share this answer
 
v2
Comments
Maciej Los 24-Oct-14 1:57am    
+5And additionally... it's possible to create custom control ;)
Sergey Alexandrovich Kryukov 24-Oct-14 2:01am    
Thank you, Maciej.
Do you mean "custom control" as opposed to "user control". Good point. Ditch the designer, embrace programming for real men. :-)
I'll add a word to the answer, to take your suggestions into account.
—SA
Maciej Los 24-Oct-14 2:02am    
Yeah. I added my answer ;)
Member 10973792 24-Oct-14 2:02am    
can you give me example sir ? .. for my reference..
Sergey Alexandrovich Kryukov 24-Oct-14 2:03am    
Oh... it would take time. Is it really necessary? Look, you need some experience in making controls anyway. How about that: try to do it yourself and show the code sample if something goes wrong?
—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!
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 24-Oct-14 2:04am    
Useful addition, a 5.
—SA
Maciej Los 24-Oct-14 2:05am    
Thank you, Sergey ;)

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