By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,918 Members | 1,662 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,918 IT Pros & Developers. It's quick & easy.

Drawing (not paint) control

P: n/a
I need to do the following in C#:

1. Drop an arbitrary image from one control to another bitmap on another
control.

2. Interact with this shape (stretch it, rotate it, etc,) once on the
bitmap.

Really I want a poor man's Visio 2003 drawing control. Any example,
commercial, or open source solution would be apprectiated. I could write
this myself, but there has to be something out there.
Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
A 'poor mans' Visio? That sounds like an interesting task. I'll see what I
can dig up.

It would seem to me that the way to go would be to construct objects that
inherit from a Drawing class. For example, construct an object that inherits
from a drawable control, like 'Region', and define your properties there.
Examine the RegionMaster controls on www.winforms.com if you want a better
idea of that one.

once you have your objects designed as drawable objects, you should just be
able to draw and drop them onto a form. But you seem to make it sound as if
you want this to be done during the program, not during development. For that
reason, I'd say build a queue of objects and load all of them into it, then
use the OnDragDrop event to trigger things. You might try reflection to
actually create the objects and their relationships.

"Tom Hornyak" wrote:
I need to do the following in C#:

1. Drop an arbitrary image from one control to another bitmap on another
control.

2. Interact with this shape (stretch it, rotate it, etc,) once on the
bitmap.

Really I want a poor man's Visio 2003 drawing control. Any example,
commercial, or open source solution would be apprectiated. I could write
this myself, but there has to be something out there.

Nov 16 '05 #2

P: n/a
By a "poor man's Visio control" I assume you mean one
which does not require every end-user of your application
to buy a visio license.

You might consider our MetaDraw control.
No run-time / end-user license requirements
for compiled ( EXE ) applications or web pages
using MetaDraw

MetaDraw will do what you want
- allowing you to drag an arbitrary image
onto a bitmap in MetaDraw
- allowing you ( by mouse or code )
to select, stretch, rotate, move that image

MetaDraw also offers support for
drawing,
dragging / resizing / rotating drawn objects
undo / redo
scroll, zoom,
save / load ( and still recognize the inserted image )
print
create diagram links
and more.

Check it out at www.MetaDraw.com
For Winforms applications use MetaDraw .NET Winforms edition
For web applications use MetaDraw 3 OCX edition
* * * * Please include a copy of this message with your reply

Jeff Bennett
Je**@Bennet-Tec.Com

* Bennet-Tec Information Systems, Inc
* 50 Jericho Tpk, Jericho, NY 11753
* Phone 516 997 5596, Fax - 5597
* RELIABLE Components Make You Look Sharp!
* TList/Pro * ALLText HT/Pro * MetaDraw *
* Custom Software Development Services Too.
* WWW.Bennet-Tec.Com

=================== ===================

Tom Hornyak <th******@comcast.net> wrote in message news:<pa****************************@comcast.net>. ..
I need to do the following in C#:

1. Drop an arbitrary image from one control to another bitmap on another
control.

2. Interact with this shape (stretch it, rotate it, etc,) once on the
bitmap.

Really I want a poor man's Visio 2003 drawing control. Any example,
commercial, or open source solution would be apprectiated. I could write
this myself, but there has to be something out there.

Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.