473,769 Members | 3,352 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7606
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******@comca st.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
3390
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 fine for about two months; the Debugger was getting control. Then, all of a sudden, it has stopped getting control. I checked the settings above and they still OK. Anybody can tell me why the Debugger is not getting control? Should I report this...
8
5651
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 using a 1pixel pictureBox. I also need "boxes" to be placed within that grid depending on data pulled from my dataset. I also used pictureBox controls for that. All those components that I use to draw my control are added to the controls collection...
6
1301
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, and unfortunately unlesss I treat the menu as a separate entity and then enumerate it after It wont work. Does anyone know how I can enumerate *every* control on any form in VB.NET? Cheers in advance.
12
6314
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 drawing calls to make. But how do I make it all happen? After I call MainLoop, none of my code gets called unless there is an event. And there is no event, so my code doesn't get called. What do I do?
1
2144
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, BOOL& bHandled) { if (wParam == VK_ESCAPE ) {
5
11873
by: kenneth6 | last post by:
int Class::function() { if(a>b) { if(c==1) { if(d==2) { return 2; }
2
2329
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 response object but how do I write it to screen? Dim objBitmap As New System.Drawing.Bitmap(400, 440) Dim objGraphics As System.Drawing.Graphics objGraphics = System.Drawing.Graphics.FromImage(objBitmap) objGraphics.Clear(Drawing.Color.White)
2
5961
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." Source="System.Windows.Forms" StackTrace: at System.Windows.Forms.Control.get_Handle() at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam) at...
2
7409
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) { if (n == 0) return 1;
0
9579
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10032
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9979
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9849
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8861
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7393
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6661
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5293
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3948
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.