i want to add Crosshair , a vertical and horizontal line to view the value of the axis
is this available for charts in vb.net 2017.

chart_2.png

Recommended Answers

All 3 Replies

Sorry but I only have VS2008 and VS2022 now. But for a real-time crosshair that moves with the mouse, showing its position along the X and Y axis I asked ChatGPT and it appears to only need less than 20 lines of code that respond to Chart1_MouseMove().

commented: Thanks , but i dint find any code on Google for vb.net but available for other languages\platforms . Any ling you can provide it will be helpful. +5

Given the antipathy towards AI here, all I can share is if you put "i want to add Crosshair , a vertical and horizontal line to view the value of the axis
is this available for charts in vb.net 2017." into a chatgpt session, you'll find a solution in about 20 seconds.

commented: Thank you very much. got the perfect code in much simple way. this is the first time i have used chatgpt and it will be useful in future +0

The trick with AI is to give it very short bits of code to write at a time. If you ask it to write an entire mini-program that does X, it inevitably gets quite a few bits wrong, left out, etc. But if you ask it to write pseudocode first, and then for each individual method/function call, you carefully explain what you want it to do, what parameters should be passed in and out, and what should be processed, then it is able to follow clear instructions and save you time writing it yourself. It’s honestly all about the prompts.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.