473,386 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Drawing (not paint) control

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
2 7584
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: John H. | last post by:
I installed the Microsoft Script Debugger and set the "Enable Script Debug" flag on in IIS. Also, I made sure that the "Disable Script Debug" flag was off in Internet Explorer. Everything ran...
8
by: Benoit Martin | last post by:
I had to draw my own control because I couldn't find any control doing what I wanted it to do. This control has a grid that I need to have control over. To do that, I draw each line of the grid...
6
by: Nick | last post by:
Hi there, I'm running into slight confusion over a .NET menu "control", how comes it doesn't get listed in the forms controls array? I'm trying to enumerate through *every* control on any form,...
12
by: Matt Bitten | last post by:
I've got a wxPython program that needs to do some drawing on a DC on a regular basis, whether or not a paint event happens. I know how to make a ClientDC to do the drawing in, and I know what...
1
by: bsvssa | last post by:
HI I NEED A HELP. In message map MESSAGE_HANDLER(WM_KEYDOWN, OnKeyDown) and declared and defined the function LRESULT CColorPickerDlg::OnKeyDown(UINT uMsg, WPARAM wParam, LPARAM lParam,...
5
by: kenneth6 | last post by:
int Class::function() { if(a>b) { if(c==1) { if(d==2) { return 2; }
2
by: ThatsIT.net.au | last post by:
I have this code that writes a pie chart in a asp.net page, but I want to use it in a server control. When I try I get a error on the last line "Response.OutputStream" Obviously there is no...
2
by: bhupendrakumar | last post by:
error message System.InvalidOperationException was unhandled Message="Cross-thread operation not valid: Control 'listView2' accessed from a thread other than the thread it was created on." ...
2
by: Mohammadtaqi | last post by:
warning C4715: 'Pow' : not all control paths return a value warning C4715: 'Sery' : not all control paths return a value #include "stdafx.h" #include <iostream> double Pow(double x, int n)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.