What are the correct commands for finding the coordinates of the mouse, either in relation to the form or in relation to a control such as the picturebox? I want to track it's position when it's hovering over a control.
I was wondering if there is anyway I can get mouse coordinates when I click on a mouse button inside a listbox? I know how to do it in the form but when I click inside a listbox nothing happens.
Glad to see some of the great minds are still here. I'm going to be frequenting this plethora of knowledge for the next couple of weeks as I attempt to complete my capstone software engineering class and finally get my undergrad. As usually I will typically need information or guidance. Since this is homework based. I have found my first issue. Allow me to digress....
The task given to my team is to create a checkers game which will have the capability to pay either player vs player or player vs cpu. Before I can begin to work on logic I need to cross the hurdle of detecting mouse movement. I have created the board which consists of 64 panels inside a groupbox. Each panel will have 4 images layers on top with the .visible property set to false. I am familiar with mouse click events to a degree but apparently lack some of the know how required.
Is there any way to get the mouse coordinates on a control behind an another control.
The exact scenario is, I have a picture box of size 1024*1024 and and an another picture box of size 256*256 over the bigger picture box (of size 1024*1024). Now, when I move my mouse over smaller picture box, I want the mouse coordinates with respect to the bigger picture box behind the smaller picture box on which the mouse is moved.
I have an image that the user clicks on and I need to capture the X and Y coordinates of that click. This is what I have but it gives me the x and Y coordinates for wherever the mouse is located.
I would like to ask a question about Getting the Mouse coordinate on the Screen outside the form then Perform a left click or mouse event on the given coordinate what i want to happen is to get the coordinate first then perform click.
i already have the code for performing the click but i dont know how to get a coordinate i will not be putting the code because i want to learn and not copy any already made code.
I need to create a program which can press anywhere on the computer screen. I need to click once with the mouse, and then save those coordinates, and afterwards the program self press the mouse at the point. It needs to be an application - not an applet. I have read something about MouseEvent, but I cannot quite figure it out, how to get those coordinates. Currently I can create a program with presses at some coordinates I self gives values as points in the source, I did that with the Robot class.
i am trying to get the current mouse coordinates on the console applications that the mouse is moving on. is there a way to find this values. Than possibly how can we turn this values to row col values related to the console window
How can I move my mouse curse to a specific coordinates ? For example no matter where the mouse is on my screen, I want it to go straight to the given coordinates.
Im new to the forum and planning to stay here to learn more on programming. I would like to ask a question about Getting the Mouse coordinate on the Screen outside the form then Perform a left click or mouse event on the given coordinate what i want to happen is to get the coordinate first then perform click. i already have the code for performing the click but i dont know how to get a coordinate i will not be putting the code because i want to learn and not copy any already made code.
I have found on the Internet a few pieces of code whitch should do automatic mouse click on coordinates I provide by code, I use mouse_event, what I want to do is to send many mouse clicks to another application, with mouse_event it works but it moves the mouse (and I don't want that cause I need the mouse at my disposal)
I've tried sendmessage, postmessage and sendinput but this two functions do the clicks only on objects and the application doesn't have any object at that location, for example if the application receives a mouse click at 100,100 at displays a number. I am using vb 2010 trial
This control takes in an array and plots a bar chart type 'count' along the Y axis for a corresponding X location. A user has requested to be able to mouse hover over any location on the graph and have it display the X and Y coordinates.
Option Strict On Option Explicit On Imports System.Windows.Forms
How do I simulate mouse click on webbrowser control based on coordinates (x, y).Coordinates of the webbrowser control. I wanna click a specific location on the webbrowser.
I have a vb.net application, and I want to know how to find the coordinates of the pointer (mouse) when it is clicked on the form. Not much else to say, so I'll leave it like that.
I'm trying to get coordinates on my screen by holding down my mouse and placing it over different parts of the screen. I'm using the mouse_up and down events in a button to kinda simulate the mouse being held down. The problem I'm running into is that anytime I go past the button's bounds, the coordinates I want stop. This is what I have so far:
I am trying to build a coordinates system but am having trouble with how to.. What I have sofar is a textbox that allows the user to enter a length. This length is user defined but never smaller then 610 in length since this is the minimum unit size we use to build timber frames. The overall length of a timber frame is infinite (well not really, but it is for what I want) the timber frame has beams every 610mm set apart from each other (this is a legal requirement) so I want my vb.net to set coordinates for each beam at intervals of 610 then write that coordinates system to a text based *.SCR file
I want to translate MouseArgEvent.Location (x,y) coordinates into my custom graph coordinates. Mouse Y coordinates increase from top to bottom while my grid's y value increase from bottom to top. Given my following code, I would need to create 21,500 separate conditional expression for 100(y) x 215(x) possible coordinate locations for my grid.
Sub OnMouseMove(ByVal e As System.Windows.Forms.MouseEventArgs) If e.X > 48 AndAlso e.X < 50 AndAlso e.Y > 397 AndAlso e.Y < 399 Then MessageBox.Show("about 0,0")
I am having trouble in getting the coordinates of x-axis and y-axis in low level ouse hook...all I am getting is values in x-axis listbox and in y-axis listbox I am getting zeros......why? and my second problem is I am calling the setcursorpos function in a for loop because I want to automate mouse movements and clicks, but setcursorpos function is not working , maybe because I am getting the coordinates wrong.....here is my code
low level mouse hook
Public Class MouseAutomating Inherits HotKey Public lstbox As New ListBox
Develop a Company Logo application that allows users to draw shapes. The application should provide the user with RadioButtons to allow the selection of the next shape to be drawn. TextBoxes should be provided to allow the user to enter coordinates (X and Y coordinates) of the shape, the width and the height of the shapes. Users should also be able to change the shape�s colour.my question is how to allow the user to enter coordinates (X and Y coordinates) of the shape, the width and the height of the shapes and change the shape�s color from combo box. pro help
below is my code:
Public Class Form1 Dim mycolor As Color Dim mypen As Pen Dim mygraphics As Graphics
I have two custom action listers. One that handles Mouse.Click and one that handles Mouse.MouseDown. My question to you is, can I delay the mouse down event so that it does not intefere with the code of the Mouse.Click event? I have tried adding a timer and waiting x amount then setting a bool value to true, but the code executes to fast and it skips the other code.
Thought I would put this out there before I embark on my own research. In a current MVC 4 app, I am looking for a way to track/audit visitors. I am looking for a way to: Record a record on each site request. Record will include things like logged in user, session id, requested page, page coming from, etc., etc. Action methods will be decorated with an attribute to trigger the creation of that record, so we can specify exactly which action methods get logged.
On a project I'm building for a client, one of the requirements is advanced user tracking. The client would like to know what pages an authenticated user is visiting, and when. I read through this post, which is probably the method I will go with. However, that seems a bit tolling on the database, and being that the client may use Azure to host this, I would like to keep the # of db transactions to a minimum [although this was not one of his requirements.. Anyway, I'm torn between the following two methods..
Method One: Log to db on every HTTP request using a HTTP module Method Two: Store in visits in session and log everything to database in one swoop during Session_End event
I'm developing an application that generates mobile GSM numbers, but i need to find a way to make sure each generated number (e.g: +23408068576645egin_of_the_skype_highlighting +23408068576645 end_of_the_skype_highlighting) is in use and importantly the CellID or location parameters of the number: the software is not a mobile app, but rather a Desktop app.
I have 2 datagrids and I want one datagrid to have a scrolling bar and the other should not have a scroll bar. How can I track the on click event on the scroll bar ? And then force the csroll on the datagrid which does not have a scroll ?