Click here to Skip to main content
15,891,633 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Everyone,
I'm practising with graphics - drawing ovals, polygons, rectangles etc.
The various shapes don't have an anchor property, so is there a way I can create an anchor property, or is there a work-around I could use so the shape resizes as I resize the form??
Any pointers/help gratefully received.
I'm using vb.net 2010

Have a great day!!
TheBluesEnd
Posted

1 solution

This is not a property. And having such property would not make any sense. This is another graphic object which you can use to manipulate the object of your vector graphics editor. I mean, the graphics primitive you are using have little to do with any interactive behavior you would like to implement; you would need to create your own vector graphics editor.

The "anchor" you mean is usually a combination of a outlined rectangle around your edited object, with some smaller, filled rectangles in the key points used for dragging by a mouse. In some editors, there are other elements use for editing more complex shapes (say, a round area); there are also all kind of arrows.

I don't want to get into further detail, because 1) you did not tag your application type and UI library you are using, 2) it seems unlikely that you are ready to go that far. If you are interested in further ideas, please as some follow-up questions.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900