Sort A Set Of Coordinate Values (x,y,z)?
Dec 23, 2005Any one aware of how to sort a set of point coordinates in the top to bottom, left to right fashion?
For example, I have a set of values like (3,5,10), (4,6,12), (4,6,1), (2,8,14).[code]...
Any one aware of how to sort a set of point coordinates in the top to bottom, left to right fashion?
For example, I have a set of values like (3,5,10), (4,6,12), (4,6,1), (2,8,14).[code]...
I'm looking for a fast way of searching a textbox containing plain text mixed with coordinate values.These coordinate values may contain no decimals or 4 decimal places after the decimal.I'm somewhat familiar with regex, but my uncertainty is the actual number of characters in each word will be different.[code]
View 2 RepliesI am currently making a 2d game where a spaceship flies around a 2d map.Currently, I am moving the ship with keys, but would like to implement mouse clicking as well.I am wanting to enter an x and y coordinate and have the ship move to that coordinate.
These are my variables:
PlayerFacingAngle, PlayerPositionX, PlayerPositionY, PlayerVelocityX and PlayerVelocityY
I want to know how can we determine the world coordinates (x,y,z) when our mouse moves in the viewport. I am using vb.net to make a directx application.
View 4 RepliesWe have a generic List(Of Product) that must be sorted on two or more properties of the Product class.
The product class has the properties "Popular" numeric (asc), "Clicked" numeric (desc), "Name" string (asc). In order of naming the properties we want the list to sort.
How can it be sort with an lamba statement? If have found to sort the list based on one property.
is there a way i can have a dictionary or something of that sort that can hold 3 values to 1 key?
View 12 RepliesI need to sort the values of my listbox to have the latest date on top plus some text
I used a reference I found here on the forum but I can't get it to work properly.[code]...
I�m using VB.Net 2008 application program.I�m using DataGridView, where column types DataGridViewTextBoxColumn. I have 3 fields. 1 field values are numeric, 1 field values are string and 1 field values are decimal.
When I try to sort the string value column, it sorts correctly. But when i try to sort the numeric value column, it sorts as if its string value.
I�m using VB.Net 2008 application program.I�m using DataGridView, where column types DataGridViewTextBoxColumn. I have 3 fields. 1 field values are numeric, 1 field values are string and 1 field values are decimal.When I try to sort the string value column, it sorts correctly. But when i try to sort the numeric value column, it sorts as if its string value.I searched a lot to make it sort numerically. But I couldn�t find it.
View 1 RepliesI am new to VB.Net 2008. I have a tricky task to resolve, it is regarding extracting characters (values) from a long string, the extracted values from the text shall be summed up and sorted by keywords, reformatted and saved into a CSV file.
[Code]...
how to sort a bindingsource basing on a column that has alphanumeric values
View 11 RepliesI have a List (Of Type) which contains many instances of a class with three properties, IPAddress, AlertDate and AlertTime.There can be many duplicates of IPAddress in this list :-
[code]...
I need to be able to pull out just the latest (by date and time) entry in the list for each unique IPAddress. Is there any simple way of doing this?
I am using crystal reports in visual studio 2005 to generate invoices. I want to sort different categories of products. I'm using group by on category field. How can i set a specified order in crystal reports for categories.I have for example 3 categories namely 'Recipe', 'Plain Spices', and 'Horeca'....The crystal reports shows them in ascending or descending order but i want Recipe data at top, then Plain Spices and Horeca in the end...!!How can I achieve this in my crystal report that has already been made?
View 2 RepliesI need to sort the values of my listbox to have the latest date on top plus some text. here is the code I'm using:
[Code]...
How can I sort data in a sorted list using values instead of keys from highest to lowest?[code]...
View 2 RepliesHow can I improve this bit below to make the items in the TreeView to sort faster or something totally different to sort them easier?
[Code]...
I have a MyObject; myObjects as List(Of MyObject) and a delegate Comparison(Of MyObject) that uses a lot of comparison functions (ByA, ByB, ByC etc) Ã la:
Shared Function CompareMyObjectsByName(x As MyObject, y As MyObject) As Integer
Return x.Name.CompareTo(y.Name)
End Function
[Code].....
i am looking for to change coordinate system on VB.net. i am using vb.net 2010.when i try to use e.graphic.transform in mouse move event it does not take. it only take in PaintEventArgs
by default the coordinate system is from up to down for Y Coordinate. and i need to change it in to down to up.how to change that system on mouse event.
Imports System
Imports System.Drawing
Imports System.Windows.Forms
Public Class Form1
[code]....
I have a textbox and I have a button. Okey, when the button is clicked I want my mouse to go and click a certain position on my screen. How can I do that using Visual basic 2008 express?
Get coordinate of any cells in datagridview?
View 8 RepliesI can't get a simple answer to this. I have pixel coordinates, I want to print an image in a (landscape) page at those coords.In my printing event I do:
Dim mypoint As New PointF(1, 1192)e.Graphics.DrawImage(My.Resources.littleSquare, mypoint)
This obviously doesn't work: I specify pixels but the driver expects inches(?) or what?
Tried to: e.Graphics.PageUnit = GraphicsUnit.Inch with no luck.I'd like a conversion method like:
Dim mypoint As New PointF(convertPixelsIntoInches(1), convertPixelsIntoInches(1192))
e.Graphics.DrawImage(My.Resources.littleSquare, mypoint)Private Function convertPixelsIntoInches(ByVal pixels As Integer) As Single
I have a chart on a Windows Form with several line graphs. I would like to be able to get the x-coordinate from a mouse click on the chart in such a way that the user would be able to place vertical annotations on the chart at the location of the click. I looked at the Chart.HitTest function, but that will only do what I need if the user clicks on a data point, not anywhere in the chart area.
View 1 RepliesPrivate Sub PictureBox1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseMove
Label5.Text = "X:" & e.X
Label6.Text = "Y:" & e.Y
End Sub
Dim objectrect As Rectangle = rects(0)
Dim object_x As Integer = objectrect.X
Dim object_y As Integer = objectrect.Y
Label7.Text = object_x
Label8.Text = object_y
I discovered that these labels are not the same, the mouse move is more accurate. My mouse is currently pointing at the upper left corner of rectangular.
I'd like to make a Cartesian Coordinate System in a Windows form and be able to plot (x,y) coordinates in it.How do i do this? I already did my research but unfortunately i only land on "charts" and not the Cartesian plane.
View 3 RepliesI'm sure some of you know the equation to get the distance of 2 points on a coordinate grid, and I'm making a program to do just that, the only problem is that when I use the square root function it doesn't return an exact number, what's wrong with my code?[code]...
View 5 RepliesMe.Bottom: is this get the X coordinate in the lowest x of the screen I only ask this because when i use me.bottom it returns 822 when my screen resolution is only 800 and my form height is only 750. Also when i use this function in different class it returns 300 when me forms is 750 Well i just want to know the code which get the height of my screen not including xp toolbar
View 6 RepliesI was just in search of a quick code for a timer_tick that would move the mouse to a list of coordinates expressed in two listboxes being one is x coordinates and one is y coordinates and click each coordinate!
View 1 RepliesSo is there any vb program to simulate paint and have the function to record the coordinate that you click? Precision Image Digitizer had this ability but unfortunately the official link is down..The output should be something like this :
xy
125148
143180
[code]......
i've already got a coordinate (x,y) like this that picture at above was create with
datagridview.item(x,y).style.backcolor = color.black
how can i copying to my picture box? and of course become an image..
I already know how to change the coordinate system using Scale method in vb6. I'm trying to find some method like than in .Net 2008 but I can't.how to do this?
View 18 Replies