Image edit control in VB.NET

Posted on 2005-04-13
Last Modified: 2013-11-13
Can anybody tell me how to get the X and Y coordinates using imageedit control in VB.NET
Question by:azhagang
    LVL 85

    Expert Comment

    by:Mike Tomlinson
    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?

    LVL 1

    Expert Comment

    Is this the control you are asking about?

    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.

    Author Comment

    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
    LVL 1

    Expert Comment

    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:

    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.
    LVL 1

    Accepted Solution

    by: describes how to collect coordinates on mouse down.  Perhaps you could incorporate a condition for if the mouse is over  your object when it goes down.  And if you want the coordinates over the image only, subtract the top and left distances from the edge of the form.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    format the code in java 6 62
    Play RTMP without Flash 3 166
    MaxSpan challenge 9 52
    scoreUp challenge 14 40
    If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
    In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now