Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2005

Tip: Looking for answers? Try searching our database.

Changing Buttons Shape Programatically

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AJ - 27 Jul 2005 00:35 GMT
Hi guys,
any clues or suggesstion on how to programatically change the shape of
a button from rectangular to say elliptical or circular. Meaning that
when the mouse hovers just within the shape, only then the Click event
can be generated.
Would be Great if you guys can help

Code can be either in C# or VB.Net
Thanx
AJ
Lloyd Dupont - 27 Jul 2005 01:20 GMT
I think the first step toward that would be to find elliptical button...

> Hi guys,
> any clues or suggesstion on how to programatically change the shape of
[quoted text clipped - 6 lines]
> Thanx
> AJ
AJ - 27 Jul 2005 11:48 GMT
how about making a circular button...
but the point is not the shape of the button...
its how to go about changing the shape....
from rectangular to any other shape....
ok, if not elliptical, then perhaps circular...
you can see that in Windows Media Player for example....
Regards
AJ

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Lloyd Dupont - 27 Jul 2005 15:53 GMT
What I mean is default WinForm button have are always (and only)
rectangular.

From that I suppose you could guess there is no method to change the shape
of the button!

What I was saying is: if you write your own or find 3rd parti shaped
buttons, then you might start thinking on how to change the shape.

Do you see what I mean this time?

> how about making a circular button...
> but the point is not the shape of the button...
[quoted text clipped - 8 lines]
> Sent via .NET Newsgroups
> http://www.dotnetnewsgroups.com 
Lloyd Dupont - 27 Jul 2005 16:47 GMT
I'm not much use to Windows Media Player but a quick look at it bring the
immediate following first conclusion.

The button used by Media Player are NOT part of the SDK and you have to
implement them YOURSELF or find a third party or sample on
www.codeproject.com

So, to reply again the same answer again a bit differently on: "how do
you...."
: you can't

but you could always write your own

> how about making a circular button...
> but the point is not the shape of the button...
[quoted text clipped - 8 lines]
> Sent via .NET Newsgroups
> http://www.dotnetnewsgroups.com 
AJ - 28 Jul 2005 03:54 GMT
Well, Thanx Lloyd,
Even though i knew that a different shaped button was not a part of the
SDK, i was just wondering, as since it has been done in Windows Media
Player, thought how was it done.
Thanx for your time
Regards
AJ

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
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.