Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General / July 2008



Tip: Looking for answers? Try searching our database.

Looking for image button control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Frank Rizzo - 03 Jul 2008 21:03 GMT
Hello, i am looking for a button control that can display the image on the
left and caption right next to it.  I can't use the toolbar control because
it makes the size of all the buttons identical, making for weird looking UI.

It should be able to look kind of like this:
http://sqleffects.com/mystuff/sample.png  It would be great if it supported
both flat and 3d look.

Thanks.
Mike Williams - 03 Jul 2008 21:10 GMT
> Hello, i am looking for a button control that can display
> the image on the left and caption right next to it.  I can't
> use the toolbar control because it makes the size of all
> the buttons identical, making for weird looking UI.

If you want the best control over the shape and other aspects of your
buttons then you would probably be better of creating your own button using
a User Control to perform the task. Alternatively, if you just want
rectangular buttons, you can use a standard PictureBox which will enable you
to draw the "button" Up and Down states in whatever way you wish.

Mike
Jialiang Ge [MSFT] - 04 Jul 2008 05:47 GMT
Apart from Mike's suggestions, here is a demo of the implementaion of such
kind of buttons:

WinForms VB.NET Picture Hover Button
http://www.codeproject.com/KB/cpp/PictureHoverButton.aspx

Regards,
Jialiang Ge  (jialge@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================
Mike Williams - 04 Jul 2008 07:02 GMT
> Apart from Mike's suggestions, here is a demo of the implementaion
> of such kind of buttons:
> WinForms VB.NET Picture Hover Button
> http://www.codeproject.com/KB/cpp/PictureHoverButton.aspx

That's not Visual Basic! It's the imposter!

Mike
BeastFish - 04 Jul 2008 21:05 GMT
> Apart from Mike's suggestions, here is a demo of the implementaion of such
> kind of buttons:
[quoted text clipped - 5 lines]
> Jialiang Ge  (jialge@online.microsoft.com, remove 'online.')
> Microsoft Online Community Support

Well... since this newsgroup is VB6 and earlier (i.e., non-dotnet), does
that example work in VB6?
Jialiang Ge [MSFT] - 07 Jul 2008 07:09 GMT
I'm sorry, everyone. I should have provided some VB6 examples in this
newsgroup:

http://vbcity.com/pubs/article.asp?alias=flatbutton
and
http://www.freevbcode.com/ShowCode.asp?ID=1340

Regards,
Jialiang Ge  (jialge@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================
Frank Rizzo - 11 Jul 2008 00:48 GMT
Sweet, thanks.

> I'm sorry, everyone. I should have provided some VB6 examples in this
> newsgroup:
[quoted text clipped - 16 lines]
> This posting is provided "AS IS" with no warranties, and confers no rights.
> =================================================
senn - 04 Jul 2008 11:32 GMT
> Hello, i am looking for a button control that can display the image on the
> left and caption right next to it.  I can't use the toolbar control
[quoted text clipped - 8 lines]
>
> Thanks.

One other method to consider.
Make a bitmap in paint that includes the text.
It's not the best way to go, as altering screen and text settings
arises problems. If you have a bitmap of the right size, put it
into Paint and write the text to the right of it. Then draw a
retangle around it and fill it with the colour if not white.
Then draw a rubber band around it, and save it to a file with
the Copy To under the Edit menu. The up-sizing in paint is
not saved. This is only effective in paint and should be done
for ease of setting the rubber band in place.
The Button style must be set to graphic.

/senn
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.