We help IT Professionals succeed at work.

Drawing a circle on a form

Derek Brown
Derek Brown asked
on
98 Views
Last Modified: 2018-12-28
How do I draw a circle on a form using code?

I Tried this:
Me.Circle (200, 200), 100, 0
But just get error method not found
Comment
Watch Question

KimputerIT Manager
CERTIFIED EXPERT

Commented:
Easiest way to control this, is probably insert a picture instead (as the form doesn't have anything similar, other solutions draws on Windows, not the form perse)
Dale FyeOwner, Dev-Soln LLC
CERTIFIED EXPERT
Most Valuable Expert 2014
Top Expert 2010

Commented:
You might want to take a look at this LinkedIn post
CERTIFIED EXPERT
Most Valuable Expert 2015
Distinguished Expert 2018
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks Gustav. Well spotted I asked this question 4 years ago and solved most of it myself. Ended up not using it and forgot all about it.

Kimputer, what do you mean draw on windows?

Dale Link to Linked In does not work for me.
CERTIFIED EXPERT
Most Valuable Expert 2015
Distinguished Expert 2018
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
KimputerIT Manager
CERTIFIED EXPERT

Commented:
There are some Windows API solution, but they're quite ugly, and draw on Windows itself, not on the form. If you move the form, the circle stays there. Here's on example: https://social.msdn.microsoft.com/Forums/en-US/8c39712f-fb49-4ef6-9fd2-245b79bb6c67/using-gdi-in-excel-vba?forum=isvvba

Author

Commented:
Thanks to you both

Author

Commented:
I do hope points have been allocated this time please confirm and let me know how points were distributed. I have no idea why EE has changed what was a simple easy system for this new one, which is weird.
CERTIFIED EXPERT
Most Valuable Expert 2015
Distinguished Expert 2018

Commented:
You are welcome!
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.