473,796 Members | 2,460 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Drawing

We have an application that is written in VB that allows to users to design
some basic structures by allowing them to select items in in a Picture box
and them modify the properties of the item that they have selected.

The items that they select are generally lines of varying length & thickness
& some arrows indicating the position of various forces.

The users are very happy with the way they use the program at present, but
we would like move this program to the company intranet. We are hoping to
use this opportunity to develop our first ASP.Net application but are
wondering how to get this 'drawing' functionality from a web page.

Are there web controls that can detect the position of the mouse & possibly
allow drag & drop of items on a drawing?

Terry Holland

Nov 18 '05 #1
2 1355
Hi Terry,

Given your Web application will be used on the Intranet, and that you could
possibly restrict the users to using IE only, I'd suggest crafting a Windows
Forms user control that will then be hosted by a Web page. Since, in
general, you cannot do any real drawing on a Web page, I see this as the
best solution.

Now to the possible consequences:

1. All of the users will have to have the .NET Framework installed.
2. Windows Forms controls, when hosted by Internet Explorer, are granted
pretty restrictive priveleges. You should exercise care in designing such
areas of the application as accessing disk files, network connectivity or
interoperating with unmanaged code. While these priveleges can be increased,
this will have to be done on each user's machine, so if this is unwanted or
unsuitable, you are now warned.

Hope this helps.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Terry Holland" <th******@sgbgb .co.uk> wrote in message
news:ee******** ******@tk2msftn gp13.phx.gbl...
We have an application that is written in VB that allows to users to design some basic structures by allowing them to select items in in a Picture box
and them modify the properties of the item that they have selected.

The items that they select are generally lines of varying length & thickness & some arrows indicating the position of various forces.

The users are very happy with the way they use the program at present, but
we would like move this program to the company intranet. We are hoping to
use this opportunity to develop our first ASP.Net application but are
wondering how to get this 'drawing' functionality from a web page.

Are there web controls that can detect the position of the mouse & possibly allow drag & drop of items on a drawing?

Terry Holland


Nov 18 '05 #2
This would be okay

Can you point me to any examples of how to do this?

"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.c om> wrote
in message news:OJ******** ******@tk2msftn gp13.phx.gbl...
Hi Terry,

Given your Web application will be used on the Intranet, and that you could possibly restrict the users to using IE only, I'd suggest crafting a Windows Forms user control that will then be hosted by a Web page. Since, in
general, you cannot do any real drawing on a Web page, I see this as the
best solution.

Now to the possible consequences:

1. All of the users will have to have the .NET Framework installed.
2. Windows Forms controls, when hosted by Internet Explorer, are granted
pretty restrictive priveleges. You should exercise care in designing such
areas of the application as accessing disk files, network connectivity or
interoperating with unmanaged code. While these priveleges can be increased, this will have to be done on each user's machine, so if this is unwanted or unsuitable, you are now warned.

Hope this helps.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Terry Holland" <th******@sgbgb .co.uk> wrote in message
news:ee******** ******@tk2msftn gp13.phx.gbl...
We have an application that is written in VB that allows to users to

design
some basic structures by allowing them to select items in in a Picture box and them modify the properties of the item that they have selected.

The items that they select are generally lines of varying length &

thickness
& some arrows indicating the position of various forces.

The users are very happy with the way they use the program at present, but we would like move this program to the company intranet. We are hoping to use this opportunity to develop our first ASP.Net application but are
wondering how to get this 'drawing' functionality from a web page.

Are there web controls that can detect the position of the mouse &

possibly
allow drag & drop of items on a drawing?

Terry Holland

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2780
by: Tomi Holger Engdahl | last post by:
I am looking for a solution to add on-line drawing tool to a phpBB discussion board. The idea would be that the users can draw their own simple drawings with the tool and attach them easily as images in the discussion. The idea is to easily add small drawings to the postings. The drawign tool should be easy to use and learn. It should be easily integrate to the phpBB system.
2
12346
by: Champika Nirosh | last post by:
Hi, I want to create drawing board application that can draw Line, rectagle, circle and free hand drawing. Each drawing need to be transparent, moveable (draggable), have bring to front and send to back feature etc. How can I do this .. where should I start?
1
3237
by: Hadar | last post by:
Hi, I'm getting "object is currently in use elsewhere" when I use System.Drawing.Graphics.MesureString. This is what I do: My controls use a utility class the helps it to mesure strings. To get the best performance for the utility class, its members, as well as the System.Drawing.Graphics object, are static:
7
8744
by: Marc Pelletier | last post by:
Hello all, I have a class which includes a method to create a chart. I want to be able to call this method from asp.net code as well as windows application code, so I have sketched it out as returning a bitmap instance. In my asp.net code I think I should call this method to return a bitmap and then somehow stream it using the response object to the Webcontrols.image. Is that right? The image object is on a page with a number of...
2
6700
by: active | last post by:
I find Bitmap.Save works for WMF files but Bitmap.FromFile does not. If I use FromFile on a WMF file that came with VS I get an exception. If I use it on a WMF file created with Bitmap.Save I don't get an exception but it appears the Bitmap is blank. Can anyone share some knowledge on this?
3
2611
by: Chris Saunders | last post by:
I am fairly new to .Net and C# but am familiar with the Win32 API. I wish to set the pixels of the client area of a window one at a time with a specific color. I have so far discovered that System.Drawing.Bitmap has a SetPixel() method but I can't seem to find out how to have the bitmap displayed. I would actually like to have the pixels appear as I set them. Regards Chris Saunders
5
3376
by: Jerry J | last post by:
I want to use the System.Drawing.Image class. According to the help file, this is an abstract base class. Because it is supposedly abstract, I created another class that inherits from it. However, when I did this I got the following error: 'System.Drawing.Image.Image()' is inaccessible due to its protection level Looking at other online examples, I found that the proper way to use it is like this:
1
3990
by: YouPoP | last post by:
I am doing an app (C# 2.0) where you can draw in a panel with your mouse in "real time". I actually have 2 problems; 1- it does not really is "real time", if your mouse move fast or very fast the line is added after a very small delay. 2-Because I use AddLine(), it adds very short lines from one point to another and it does not give a very good result. Also because of this and my "not real time" problem, when the mouse moves fast it adds...
2
2330
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)
7
3561
by: raylopez99 | last post by:
I have a logical drawing space much bigger than the viewport (the screen) and I'd like to center the viewport (the screen) to be at the center of the logical drawing space. After following the excellent transforms specified on Bob Powell's site, I still wonder if there's an easier way of centering it than the following procedure? Here is what I do now (it's awkward but it works): 1) I follow the transforms specified on Bob Powell's...
0
9683
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
9529
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10457
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10231
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
10176
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
9054
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...
0
6792
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
5443
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...
0
5576
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.