Here's something to get you started with the transparent form over your form idea. Using System using using System.ComponentModel using System.Data using System.Drawing using System.Text using using ZedGraph namespace WinFormZedGraph
Crosshair overlay program doesnt interfere with program code#
I tried to put my modified code in the sample's form into a region. I took the sample at this link, and implemented a transparent form over it.Īdd second class as a CLASS, not a form. G.DrawLine(Pens.Black, 0, _MousePosition.Y, sz.Width, _MousePosition.Y) Ĭuriousity got the best of me. G.DrawLine(Pens.Black, _MousePosition.X, 0, _MousePosition.X, sz.Height) Protected override void OnPaint(PaintEventArgs e)īase.OnPaint(e) // allow the control to paint itself first. Invalidate both lines this.Invalidate(_CrosshairXLine) _CrosshairYLine = new Rectangle(_MousePosition.X - 3, 0, _MousePosition.X + 3, sz.Height) _CrosshairXLine = new Rectangle(0, _MousePosition.Y - 3, sz.Width, _MousePosition.Y + 3) Calculate the portion of the window in which we painted our last crosshair (with a little extra space to avoid artifacts). Protected override void OnMouseMove(MouseEventArgs e) Clear the previous lines since we just left the control this.Invalidate(_CrosshairXLine) Protected override void OnMouseLeave(EventArgs e) Protected override void OnMouseEnter(EventArgs e) Public class MyZedGraphControl : ZedGraphControl A bool return value is required by ZedGraphControl.ZedMouseEventHandler. G.DrawLine(blackPen, mouseX, formBottom,mouseX, mouseY) Most of the overlays also will not show up if you are streaming depending on capture settings. G.DrawLine(blackPen, formRight, mouseY, mouseX, mouseY) AMD PRODUCT WARRANTY DOES NOT COVER DAMAGES CAUSED BY OVERCLOCKING, EVEN WHEN OVERCLOCKING IS ENABLED VIA AMD HARDWARE AND/OR SOFTWARE. G.DrawLine(blackPen, mouseX, 0, mouseX,mouseY)
![crosshair overlay program doesnt interfere with program crosshair overlay program doesnt interfere with program](https://desktopoverlay.com/en/help/custom_crosshair/configure-crosshair.png)
Get the coordinates that define crosshairs. Private bool ZedGraph_MouseMove(ZedGraphControl sender, MouseEventArgs e)
![crosshair overlay program doesnt interfere with program crosshair overlay program doesnt interfere with program](http://www.miloslick.com/MallinCam2_Help/Video_Overlay_Settings_files/droppedImage_1.jpg)
Public static ZedGraphControl zedGraphControl1 = new ZedGraphControl() At CenterPoint Gaming, we believe that all gaming monitors should have a built in crosshair but until that day comes Crosshair V2 is here to even the playing field. I'm using ZedGraphControl to draw the chart. Crosshair V2 - The crosshair your gaming monitor should have built in. The crosshairsįollows the cursor with a time lag. I have tried some solutions that have been suggested in another thread but they are a bit slow. I would like to draw a full-screen crosshairs cursor on a chart that has a lot of information.