How to change Button's Shape

397 views
Skip to first unread message

yogs

unread,
Jul 3, 2009, 2:25:18 AM7/3/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Hi friends,
I want to give rounded rectangular shape to buttons, so that I can put
the images of the same shape.
How is it possible in VB.NET, please help.

Thanks,
Yogesh

Mike Fry

unread,
Jul 3, 2009, 11:57:10 AM7/3/09
to DotNetDe...@googlegroups.com
yogs wrote:

> I want to give rounded rectangular shape to buttons, so that I can put
> the images of the same shape.
> How is it possible in VB.NET, please help.

As always ... See OWNERDRAW

--
Regards,
Mike Fry
Johannesburg.

Kira Qian

unread,
Jul 4, 2009, 10:35:22 AM7/4/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
You might think of made a WPF button instead of winform. Winform
button alway turn to square once you set its image. You can custom a
wpf button easily but winform, you will face a painful work. Here is a
thread may be helpful to you also.
http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/ebe64711-d63b-446f-acf4-db4abc35ddb3

Cerebrus

unread,
Jul 5, 2009, 5:58:52 AM7/5/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Not an accurate statement. I created all sorts of buttons with the
weirdest shapes when I was experimenting with GDI+ in .NET.

Drew

unread,
Jul 5, 2009, 2:11:29 PM7/5/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Yes, Kira has a good point.

WPF, Windows Presentation Foundation is soon to be utilized by most
applications within the future leaving winform obsolete, hopefully.

And instead of taking memory it renders everything on the gpu.

On Jul 4, 7:35 am, Kira Qian <kiraq...@gmail.com> wrote:
> You might think of made a WPF button instead of winform. Winform
> button alway turn to square once you set its image. You can custom a
> wpf button easily but winform, you will face a painful work. Here is a
> thread may be helpful to you also.http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/ebe6471...

santhosh vs

unread,
Jul 6, 2009, 3:01:40 AM7/6/09
to DotNetDe...@googlegroups.com
Codeproject contains a lot of such GDI Samples
--
My Web Site
http://everlovingyouth.googlepages.com
My Technical Blog
http://acutedeveloper.blogspot.com
 
Reply all
Reply to author
Forward
0 new messages