How to get a region by a mouse click

Hello

I use c# .net. I want to use the mouse to select an area of the image source for mask. How can I get the left, top, width, height values of mouse selected on the source image.

axCWIMAQViewer.Regions.RemoveAll ();

axCWIMAQViewer.Region.GetRegionData (); //????

Greetings.

Search in google and search for the coordinates of the mouse - you will find something like that

http://www.mycsharp.de/wbb2/thread.php?ThreadId=61761

Private Sub Form2_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseMove
Dim x, y As Integer

Me.MousePosition.X - (Me.Location.X + 4) = x ' + 4 wegen den randern der shape
y = Me.MousePosition.Y - (Me.Location.Y + 30) ' + 30 wegen der titelleiste und dem rahmen foods

Form1.pictureBox1.location = New System.Drawing.Point (x, y)
End Sub

Or use this:

Control.PointToScreen und Control.PointToClient

When I create a mouse event in my Visual Studio 2005 c# project I can work with x and y values:

private void axCWIMAQViewer1_MouseDownEvent (object sender, AxNationalInstruments.CWIMAQControls._DCWIMAQViewerEvents_MouseDownEvent e)

{

provable //x coordinated

}

Please give me your comments if help suggestions help you work with the coordinates of the mouse

Tags: NI Hardware

Similar Questions

  • How can I disable the sound of mouse clicks?

    I use the mouse to change a lot of information, and the sound of the mouse clicks is annoying my other half.   (5 clicks for each changed item)     I have the sound control on the computer is off and can't find anything that helps in the Panel.    It is not practical to use the touchpad.    Any ideas please?

    Hello

    (1) what is the operating system installed on your computer?

    Follow the steps mentioned below to turn off the sound of the click and check if the problem still persists.

    (a) click the Start button in the Windows 7 menu bar.

    (b) in the Start menu, click Control Panel.

    (c) on the Control Panel dialog box, click hardware and sound.

    (d) in the hardware and audio dialog box, click change system sounds.

    (e) in the sound dialog box, use the scroll bar until you see the event entitled: Start Navigation.

    f) click on launch Navigation.

    (g) from the drop-down list sounds , select none.

    (h) click OK.

    Hope this information helps.

  • How to get settings regional user of business components

    Hello

    How can I get the settings regional user in business components?

    For example, I want to use the locale in a vo query where clause:

    Select location_id
    sites
    where country_id = local

    is there an expression for the locale of the user?

    Thank you.

    You can create a connection variable: countries with this groovy expression:

    adf.context.locale.country
    

    And in the query:

    where country_id = :country
    

    AP

  • How to get code regional House of the handset?

    I'm trying to get the handset area code, and I'm looking for an independent way of type radio to do?

    There is a system property that contains the code of the device?  Maybe something in system properties?

    I've seen some posts surrounding information CDMA, and while he seems to identify a particular base station, I'm not find information about the area code with it.

    Either way, I configured the Simulator with a LAKE in area code "206", but when querying with the GPRSInfo.getLAC (), I always get 0...  Anyone know what is happening with the Simulator?

    Thank you

    DD

    Thanks, I can use this format...

  • How to get to the event with a click on send in the Messages application

    Hi all

    We write code in my application to get the content (, object, body.. data) while clicking on "Send" menuitem in the application "Messages"...

    Or can show our own guest while clicking 'Send' element in the 'Messages' application to copy the details of the e-mail (messages) in my application...

    Thanks in advance...

    You can place an ApplicationMenuItem on the program of Messages, but I don't think that's what you're looking for.

    You can also try adding a FolderListener in the mail store, then you get to announce to any e-mail message hit the folder. The subject of the message has a "isInbound()" method that will tell you if the message is incoming or outgoing.

    See the documentation for the API to Store, FolderListener, Message, and FolderEvent.

  • How can I create a symbol on mouse click?

    I'm trying to create an instance of a symbol to the location of the mouse when I click - anywhere on the stage.

    I think it should be something like the following:

    scene on.click function

    Create an element in the instance of a symbol as a child of the

    given parent element

    premade code: var mySymbolObject = sym.createChildSymbol ("Symbol_1", "ParentElement1");

    var mySymbolObject = sym.createChildSymbol ("Symbol_1", "Mouse");

    This does not of course because the mouse is not a symbol.

    Does anyone do this? And can you share?

    Thank you

    Small correction here:

    var point = sym.$('Stage');

    offset = stage.offset ();

    {internship. MouseMove (Function (e)})

    mouseX = e.pageX;

    mouseY = e.pageY;

    });

    {sym.$('Stage'). Click (Function ()})

    var mySymbolObject = sym.createChildSymbol ("ani", "Stage");

    mySymbolObject.element.css ({'position': 'absolute', 'left': mouseX, 'top': mouseY});

    mySymbolObject.play ();

    });

    example: https://app.box.com/s/yfd3sj4drxh6enr1wwei

  • Re: How make a Word appear when the mouse click on an object I created.

    I am a beginner again, the software I have is fl Adobe CS4.  I succussfully has created a scene with all the correct layers including a start button action script.  No error does not work very well. Now, my next challenge is, how to cause a Word to apear?  I created a few items that I would like to select and cause a Word to appear and color to change, once I have fly over the object.  It's like the same method when you create a "Start button".  Can I create another sub scene in the action script command?

    You should not ignore the error (and also you can not). However, the code that you pasted contains no problematic piece of code that generates the error.

    To locate the error line, select allow debugging in publication settings.

  • How to use the SPACEBAR instead of mouse click

    I tried to find it but can't seem to.

    Is there a way to make sure the space bar moves to the next slide, or allows you to play to the current slide, or any action like that?

    Hello

    What version do you use?

    Lilybiri

  • How to get the selected DataGrid item?

    Hello

    I have a datagrid

    < mx:DataGrid = "10" XY = dataProvider "36" = "{acEmaillist}" width = "319" >
    < mx:columns >
    < mx:DataGridColumn headerText = "Full name" dataField = "cn" width = "150" / >
    < mx:DataGridColumn headerText = "Email" dataField = "mail" width = "150" / >
    < / mx:columns >
    < / mx:DataGrid >

    I want to select a name, click it, get the selected name and save it in a string variable. Please let me know how to get the selected name when I click it. Thank you very much.

    M

    This code can help.


    http://www.Adobe.com/2006/mxml"width ="100% ">

    Import mx.controls.DataGrid;
    Import mx.events.ListEvent;

    [Bindable]
    private var nameStr:String;

    public void getName(event:ListEvent):void {}
    var dg:DataGrid = DataGrid (event.target);
    nameStr = dg.selectedItem.cn;
    }
    ]]>



    Bob Smith
    [email protected]


    Ted Alan
    [email protected]


    Fred Tobs
    [email protected]








  • I have a wireless optical mouse and I can't remove the usb of my laptop Gateway receiver. It is stuck there. How to get out?

    I have a wireless optical mouse and I can't remove the usb of my laptop Gateway receiver. It is stuck there. How to get out?

    Hello

    The unit just has USB slide out. If it is stuck, consult with a real computer store (the one that makes
    his own service in the House and not leeks and glances at a Best Buy or other stores) or gateway
    supported.

    Gateway drivers and downloads
    http://support.gateway.com/support/drivers/dlcenter.asp

    Technical support Gateway
    http://support.gateway.com/support/?cmpid=topNav

    Door Documents
    http://support.gateway.com/support/SUPINFO/index.asp?cmpid=topNav

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Area hideShowHeader: how to get the name of region on Hide/Show Event

    Hello

    I would like to retrieve the name of the region (hideShowHeader) when I click on the hide/show icon. I know how to catch the event but some OAWebBeanConstants I always check null... any idea?

    Thank you very much, Pier Paolo.

    Hello

    Try to print below in LIC...

    System.out.println ("name of the event:" + pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM));
    System.out.println ("the Source of the event:" + pageContext.getParameter (OAWebBeanConstants.SOURCE_PARAM));
    System.out.println ("value:" + pageContext.getParameter (OAWebBeanConstants.VALUE_PARAM));

    Thank you
    Mukesh Uchaniya

  • How to get a symbol to follow the mouse?

    I have a cross as a lightgun to an arcade style game. What is the code would use to get the symbol follow the mouse, and if possible, origin of the coast could be in the middle of the coast and not in the upper left corner of the symbol?

    HI, thatoneguy545-

    UME - san of our preview had this great project that you might want to check:

    http://Ciruelo.jp/js/edge/helloEDGE.html

    It is coded in a previous version of edge animate.  To operate, click and drag on the stage.  It included its project files in the page.

    Hope that helps!

    -Elaine

  • Captivate 5 Mac: How to get rid of the little star associated with each mouse click

    Hello

    I recorded a new project and only use the mouse, without noises from klick or select box before you click.

    When I look at the saved project, Captivate shows me before each mouse click on a small star, which I don't want to see.

    Unfortunately, I can't do a screenshot of it, because it is not visible on the slide at the beginning. It shows the second just before the mouse clicks. I'm sure, I can turn it off, but I don't know where.

    Thanks for any help, Miriam

    Hello

    If you click on the object of the mouse to select and look at the properties panel, is there that something set to display the mouse click?

    See you soon... Rick

    Useful and practical links

    Begin to learn Captivate 5 times now! $29.95

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcererStone blog

    Captivate eBooks

  • MP3s used to play in a new tab on middle mouse click. It now shows a save/open with dialog box. How to play n record mp3 if I want to?

    Previous links to files mp3 used to get opened and played in a new tab by pressing the click way/scroll button. Like played mp3 I had an option to record the audio. After a reinstall of my OS (currently on Win 7 Professional 32 bits) and Firefox 41.0.1, I'm not able to do the same. Middle mouse click now opens a new tab and a dialog box open with - or save - as. There is no automatic playback. I would like to have the old function of Firefox. I don't know if my OS has installed SP and I am not able to install OS updates at the moment. Are there settings to do or a particular version of firefox to install to get what I want? I'm just an average user with a bit of computer know how. Thanks in advance.

    Make sure that you have supported for Windows Media Foundation in your operating system.

    topic: config page:

  • That seems like an ad on my pages of AOL and XFINITY: unable to connect... "How to get rid of the ad.

    The full announcement is this "unable to connect".

    Firefox can't establish a connection to the server famousadage.com.

       The site could be temporarily unavailable or too busy. Try again in a few moments.
       If you are unable to load any pages, check your computer's network connection.
       If your computer or network is protected by a firewall or proxy, make sure that Firefox is....
    

    In any case, it takes you to go.daddy where the site is parked.
    How can this ad got rid of because when I saw the ad I lost some time because I thought it was a notice about my Firefox browser.
    OK how do we get rid of this announcement?

    Adblock more {web link}
    Blocks annoying video ads on YouTube, Facebook ads, banners
    and much more. Adblock Plus blocks all the annoying ads, and
    supports Web sites by blocking is not discrete (configurable) default ads.

    Pop-up Addon Adblock more {web link}
    Adblock Plus pop-up Addon - extends the functionality of blocking of the
    Adblock Plus for those annoying windows pop up that opens on the mouse
    clicks and other actions of the user.

    Forum; Homepage of Adblock Plus {web link}

Maybe you are looking for