| | |
2 Point Measurement
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
Helloooooo...
I've been working a simple calculator for a kind of RPG I'n developing, and it requires use of a grid.
I have a set number of checkboxes in a grid formation, where the user checks off two of these boxes.
From here, I'm trying to get the measurement between the two checked boxes... my friend says there is a function that can measure the total pixels between two points, but I wasn't quite certain how that would work.
In fact, I was hoping for more of a coordinate system, where the distance could be measured horizontally and vertically in terms of the number of boxes transversed. Each checkbox would have an X and Y value, therefore. Then, I'd just use the Pythagorean theorem to determine the straight distance between these selected boxes.
I don't know how simple this could be, I just started to try out Visual Basic again.
If anyone has an idea, I'd really appreciate any help. Thanks in advance.
This is on Visual Basic 2008, for reference.
I've been working a simple calculator for a kind of RPG I'n developing, and it requires use of a grid.
I have a set number of checkboxes in a grid formation, where the user checks off two of these boxes.
From here, I'm trying to get the measurement between the two checked boxes... my friend says there is a function that can measure the total pixels between two points, but I wasn't quite certain how that would work.
In fact, I was hoping for more of a coordinate system, where the distance could be measured horizontally and vertically in terms of the number of boxes transversed. Each checkbox would have an X and Y value, therefore. Then, I'd just use the Pythagorean theorem to determine the straight distance between these selected boxes.
I don't know how simple this could be, I just started to try out Visual Basic again.
If anyone has an idea, I'd really appreciate any help. Thanks in advance.
This is on Visual Basic 2008, for reference.
Personal messages and emails will not be ignored.
![]() |
Similar Threads
- About Blank Prob - HJT log here (Viruses, Spyware and other Nasties)
- about blank problem (Viruses, Spyware and other Nasties)
- Right Justified / decimal point alignment (C)
- whats the difference btw memory,warp,cpu and gpu clocks (Motherboards, CPUs and RAM)
- getting rid of Admilliserve log file (Viruses, Spyware and other Nasties)
- My Personal Horoscope crap... (Viruses, Spyware and other Nasties)
- Spyware problem (Viruses, Spyware and other Nasties)
Other Threads in the VB.NET Forum
- Previous Thread: XCOPY not working in VB.Net windows service.. Plz Help
- Next Thread: how can i make a total field by page in Crystal Report 11
| Thread Tools | Search this Thread |
.net 30minutes 2005 2008 access account arithmetic array arrays basic binary bing button buttons c# center check checkbox code combobox component connectionstring convert crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dropdownlist excel file-dialog folder ftp generatetags google gridview hardcopy image images inline insert intel internet listview mobile monitor ms net networking output passingparameters peertopeervideostreaming picturebox picturebox1 plugin port print printing problem problemwithinstallation project reports" save searchbox searchvb.net select serial server soap sql table tcp text textbox timer toolbox trim update updown user usercontrol vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web wpf





