PC Review


Reply
Thread Tools Rate Thread

Changing Buttons Shape Programatically

 
 
AJ
Guest
Posts: n/a
 
      27th Jul 2005
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

 
Reply With Quote
 
 
 
 
Lloyd Dupont
Guest
Posts: n/a
 
      27th Jul 2005
I think the first step toward that would be to find elliptical button...

"AJ" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
AJ
Guest
Posts: n/a
 
      27th Jul 2005
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
 
Reply With Quote
 
Lloyd Dupont
Guest
Posts: n/a
 
      27th Jul 2005
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?

"AJ" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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



 
Reply With Quote
 
Lloyd Dupont
Guest
Posts: n/a
 
      27th Jul 2005
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

"AJ" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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



 
Reply With Quote
 
AJ
Guest
Posts: n/a
 
      28th Jul 2005
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Buttons changed shape in Outlook 2003 Linus Microsoft Outlook 3 21st Oct 2007 01:12 PM
Buttons changed shape in Outlook 2003 Linus Microsoft Outlook Discussion 0 12th Sep 2007 03:48 PM
Shape of buttons =?Utf-8?B?R3V5IE5vcm1hbmRlYXU=?= Microsoft Access Forms 1 3rd Nov 2006 06:59 PM
Circular / Shape buttons Paul M Microsoft VB .NET 3 29th Jan 2006 12:18 PM
Changing the Shape of Button Programatically AJ Microsoft C# .NET 1 27th Jul 2005 01:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:10 PM.