Link to home
Start Free TrialLog in
Avatar of azhagang
azhagang

asked on

Image edit control in VB.NET

Can anybody tell me how to get the X and Y coordinates using imageedit control in VB.NET
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Please excuse my ignorance...but I am unaware of any "imageedit" control in VB.Net.

What control are you using?  Is it from  an external library or is it one of the default controls from the toolbox.

Do you need to get the X and Y coordinates when the mouse is clicked on is this control or are you looking for the width and height of the image contained in this control?

~IM
Avatar of arosboro
arosboro

Is this the control you are asking about? http://msdn.microsoft.com/library/default.asp?url=/library/en-us/3rdparty/html/hidh_imgedit_contents.asp

If so, this msdn page has a list of properties amd methods (on the left).  If you're trying to figure out the location of the pointer, I can't help you there.  I saw properties for ImageHeight ImageWidth and ImageResolutionX.

Good luck.
Avatar of azhagang

ASKER

Thanx for ur prompt reply.What I need is need to get the X and Y coordinates when the mouse is clicked on is this control .The control is from default controls from the toolbox.It is called Kodak image edit control(imageedit.ocx).Thanx in adcance
Maybe the problem is that you are using an outdated image library?  I tried making a .net project to find some code that would do what you wanted but coulding find the library on my computer.  I googled for it but couldn't find any download.  Here is the link I found describing an alternative: http://vbnet.mvps.org/index.html?code/imageapi/mswaidll.htm

It has a link for Microsoft Windows Image Acquisition Library v2.0 and says "Kodak Imaging for Windows program and the related controls (ImgScan.ocx, ImgAdmin.ocx, ImgEdit.ocx, and ImgThumb.ocx) are not included with Windows XP."

I think in interest of compatability you may want to consider upgrading your library.  Otherwise, hoopefully someone else knows how to get the coordinates of the mouse over an object in .net.  Maybe theres a method that will work with any object.
ASKER CERTIFIED SOLUTION
Avatar of arosboro
arosboro

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial