PC Review


Reply
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average.

Drawing shapes on Userform

 
 
mangesh_yadav
Guest
Posts: n/a
 
      11th Sep 2004
Is there any way to draw a circle on a userform and give it a color

- Mangesh


---
Message posted from http://www.ExcelForum.com/

 
Reply With Quote
 
 
 
 
Frank Kabel
Guest
Posts: n/a
 
      11th Sep 2004
Hi
aFAIK not possible

--
Regards
Frank Kabel
Frankfurt, Germany

"mangesh_yadav >" <<(E-Mail Removed)> schrieb
im Newsbeitrag news:(E-Mail Removed)...
> Is there any way to draw a circle on a userform and give it a color
>
> - Mangesh
>
>
> ---
> Message posted from http://www.ExcelForum.com/
>


 
Reply With Quote
 
Debra Dalgleish
Guest
Posts: n/a
 
      11th Sep 2004
You could create graphic files of coloured circles, and insert them into
the UserForm as images. Show or hide them as required.

mangesh_yadav < wrote:
> Is there any way to draw a circle on a userform and give it a color



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

 
Reply With Quote
 
mangesh_yadav
Guest
Posts: n/a
 
      11th Sep 2004
Thanks.

- Manges

--
Message posted from http://www.ExcelForum.com

 
Reply With Quote
 
mangesh_yadav
Guest
Posts: n/a
 
      11th Sep 2004
Yes, but that would require me to carry the image files everywhere alon
with the excel application.

Manges

--
Message posted from http://www.ExcelForum.com

 
Reply With Quote
 
Michel Pierron
Guest
Posts: n/a
 
      11th Sep 2004
Hi mangesh_yadav,
If you can be satisfied with the default color:
Private Declare Function GetActiveWindow Lib "user32" () As Long
Private Declare Function GetWindowDC Lib "user32" _
(ByVal hWnd As Long) As Long
Private Declare Function Ellipse Lib "gdi32" (ByVal hDC As Long _
, ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long _
, ByVal Y2 As Long) As Long

Private Sub UserForm_Activate()
DoEvents
Ellipse GetWindowDC(GetActiveWindow), 10, 40, 90, 120
End Sub

Regards,
MP

"mangesh_yadav >" <<(E-Mail Removed)> a écrit dans
le message de news:(E-Mail Removed)...
> Is there any way to draw a circle on a userform and give it a color
>
> - Mangesh
>
>
> ---
> Message posted from http://www.ExcelForum.com/
>



 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      11th Sep 2004
I read Debra's suggestion as designing the userform with all the shapes/images
included. Then use code to hide/show the ones you want.



"mangesh_yadav <" wrote:
>
> Yes, but that would require me to carry the image files everywhere along
> with the excel application.
>
> Mangesh
>
> ---
> Message posted from http://www.ExcelForum.com/


--

Dave Peterson
(E-Mail Removed)
 
Reply With Quote
 
Ivan F Moala
Guest
Posts: n/a
 
      11th Sep 2004
> Yes, but that would require me to carry the image files everywhere along
> with the excel application.
>
> Mangesh


Mangesh, it wouldn't require this at all if you do this at design time.
 
Reply With Quote
 
mangesh_yadav
Guest
Posts: n/a
 
      16th Sep 2004
Hi Michel,

Thanks for the response. I will try it out and come back in case of an
difficulties. I hope it doesn't require any addins or new settings.

- Manges

--
Message posted from http://www.ExcelForum.com

 
Reply With Quote
 
mangesh_yadav
Guest
Posts: n/a
 
      16th Sep 2004
Thanks to everyone

Mangesh


---
Message posted from http://www.ExcelForum.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
Add drawing shapes to Userform Webtechie Microsoft Excel Programming 2 4th Aug 2009 03:53 PM
When drawing shapes in excel the shapes keep disappearing =?Utf-8?B?VGFwZQ==?= Microsoft Excel Misc 1 6th Oct 2006 04:23 PM
Drawing Shapes =?Utf-8?B?TEdGTg==?= Microsoft Powerpoint 3 9th May 2006 08:01 PM
drawing and moving shapes Andreas Schubert Microsoft VB .NET 1 24th Mar 2005 03:41 PM
Drawing Shapes on Forms ? Dave Ruhl Microsoft Access 3 3rd Jun 2004 10:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:19 AM.