Home All Groups Group Topic Archive Search About

web control with GDI+ and MouseMovements.

Author
22 Jan 2007 9:12 PM
Ravi
Hi,
    I have windows forms based control which uses GDI+ and mouse-events to
create a particular image viewing capability. This is in C# .NET.

Now, I am trying to make this web-compatible, and am wondering about the
right approach to do that.

Could anyone please suggest the right technologies for creating a
web-component that handles image-drawing and mouse events?

I've been thinking of various approaches - ActiveX, ASP.NET server-side
code, etc..

If I recreate this as an ActiveX control, it would require the users to
install .Net Runtime Framework on their systems to use it. Or, is there a way
to create ActiveX controls that can use core Win32 API, instead of requiring
..NET framework?

If I use ASP.NET server-side code, handling mouse movements would be too
slow.

Any suggestions would be greatly appreciated.

Thank you,
Ravi

(P.S. Sorry if this is in the wrong forum).

Author
23 Jan 2007 6:46 PM
Thomas Hansen
Ravi wrote:
> Hi,
>     I have windows forms based control which uses GDI+ and mouse-events to
> create a particular image viewing capability. This is in C# .NET.
>
> Now, I am trying to make this web-compatible, and am wondering about the
> right approach to do that.
>
> Could anyone please suggest the right technologies for creating a
> web-component that handles image-drawing and mouse events?
>
> I've been thinking of various approaches - ActiveX,

DON'T!!

> ASP.NET server-side
> code, etc..
>
> If I recreate this as an ActiveX control, it would require the users to
> install .Net Runtime Framework on their systems to use it. Or, is there a way
> to create ActiveX controls that can use core Win32 API, instead of requiring
> .NET framework?

COM, STILL DON'T!!

>
> If I use ASP.NET server-side code, handling mouse movements would be too
> slow.
>
> Any suggestions would be greatly appreciated.

Download the "Canvas" project for IE and use Canvas plus onmousemove +
onmousedown and onmouseup.
If you add prototype.js to the prescription and scriptaculous you'll
also save yourself alot of work...


..t

--
http://ajaxwidgets.com
Free ASP.NET Ajax Widgets NOW!