VS 2008 Min X Or Y From Point Array?
Aug 14, 2010how can i find the smallest X or Y value from a point array with the array.min method?
vb
Dim p(3) As Point
For x As Integer = 0 To 3
[Code].....
how can i find the smallest X or Y value from a point array with the array.min method?
vb
Dim p(3) As Point
For x As Integer = 0 To 3
[Code].....
I hve been working with points a lot recently, and I have been wondering if there is a way to set a point without setting point.x and point.y separately. For example for (3, 5): Point1 = (3, 5) But that isn't right
View 4 Repliesin order to create fancy custom end caps on the ends of a line, a structure like the following can be used:
Dim pts() As Point = {
New Point(-2, -2),
New Point(0, 0),
[Code]....
be used to create the same point array. I can see splitting these values into an integer array but how would these in turn be placed in a point array of whatever size is defined by the text values so they can be converted to end points of a line that is developed as values are changed in the text box.
I have a Diagonal line drawn on a picture box on my forum and i need to know if the user has clicked the line I have the Start point and End Point of the Line and the mouse x,y location So i basically need to find out if the x,y of the mouse is on the line.
View 2 RepliesI'm trying to extract a piece of text from within the string, defining both a starting point and an ending point. For instance, say I want to search for the text found between "That is a " and " car" in the string "That is a red car", so it would return "red".I know you can use .SelectionStart and SelectionLength, but the length of the word can change, so the selection length can vary. What I want is to establish a specific starting point and a specific ending point from which to extract the text from the string.
View 5 RepliesI want to know if its possible to loop in a variable and grab info from point a to point b
This is what I have stored in my Variable
PHP
</div> <!-- div reviews end white-space:nowrap; margin-bottom:5px; class="reviews" -->
<div class="list_address">
[Code].....
i have a picturebox which displays a map i have 2 modes add point and delete point when the user clicks the picture it creates a point on the picture where the user has clicked that works perfectly its when i try and delete the point when it doesent work :/ i have all the points loading from an xml file this is the code i have:
[Code]...
basicly i want it to when the user clicks the point it fines the x any y in the xml delete the node then delete all the points on the map then reload them all according to the xml
I'm trying to calculate the direction between two points on a two-dimensional grid. Actually I want to determine if that vector is within a range of two values. Suppose the grid's origin is 0,0 at the upper left corner, and 0 degrees represents north. I have a point A on that grid. I want to know if a line from point A to point B on the grid is within a range of directions between 111.8 degrees (a little south of east) and 158.2 (a little east of south). Those are approximations; the 111.8 is 90 degrees plus the arctangent of 2/5, and 158.2 is 180 minus that value. I worked out a series of calculations worthy of a medieval astronomer, but I suspect there is a simpler way. I'm going to have to do this for a variety of other vectors, and I'd like to generalize
View 4 RepliesI know how I can construct an icon setting point by point, but that isn't what I want. I want to use a bitmap file or a jpeg -is easy to convert an jpeg to an bitmap- and built an icon that looks like this picture.
View 2 RepliesI want to make a drawing application which needs a few drawing functions I cant handle myself as im not very mathematicly inclined The first on the list of functions is to create an arc from a start point, end point and radius. The method signature is as followes.
Function CreateArc(byval StartPoint as PointF, EndPoint as PointF, Raduis as single) As PointF()
'Code to create an array of points...
[Code]....
Objective: Combine byte arrays, read specific sections, and then cut byte array at specified point.
Private Sub DataArrival(ByRef aBot As xyzSocket, ByRef theData As Byte())
Dim RDLength As Int32
If aBot.ReceivedData Is Nothing Then[code]....
I'm not sure if I have this right to begin with because I can't test it without having it completed.
I have a DataGridView that will occasionally have a RowError icon displayed in the RowHeader (shown below)I have code that displays a small form when the users mouse moves over the row header or clicks the row header.I would like to draw aline from the top-left of the form to the middle-right of the row header.I basically want to point from the form to the error icon.
View 1 RepliesI need to move an ellipse from a known point on the screen to another known point on the screen.
I've tried using For.....Loops with less than desired results.
I can't remember everything I've tried, a lot of trial and error has been layed to waste. Lol
I've ended up with this code after putting together what I've tried, what I've learned elsewhere, and a couple of posts I've read on here.
All I want to do is move the ellipse from one point to the other along a straight line that forms the angle between the two points (X1,Y1) and (X2,Y2), make it grow from 2 pixels at it's start, to about 80 pixels by the time it reaches half way, then shrink from 80 pixels back down to 2 pixels by the time it reaches the point (X2,Y2).
Easier said than done.
Here's what I have at the present.....
Dim W As Integer
Dim H As Integer
Dim Num As Integer
[Code].....
....This seems like such a simple task, yet it's been a week since I came up with the idea, and I've had little success.
come out with the codes for moving the mouse pointer from point (200, 100) to point (300, 400), repeatedly. Using VB 2008.
View 8 RepliesI looked around the forum can't find something really simple.I want to scrape everything between the
<!-- google_ad_section_start -->
to
<div class="ad_editorial-sponsorship"></div>
copy it and use it right after it's website and I navigate using webbrowser1.
i want to work on a shooting game,and i already have a code for the rotation of the image but i have a few problemFirst problem(for the tank /ship): i want the image to AUTOMATICALLY rotate facing the mouse cursor,i know how to rotate but but i dont know how to convert the location of the mouse to an angle that the image will face,,
View 1 RepliesOk every so often in .net (when i have a project that references another project in the one solution, and i add a breakpoint to the "non-startup" project) I get the following message:"This breakpoint will not currently be hit. The source code is different from the origional version"I tried to remove the reference from the project and re-add it from the other project in my solution - this did not fix the problem.
View 4 Repliesof a tcp server/client project example so that I can make my won tcp chat or something.
View 2 RepliesI was wondering how i can get as far as the second point in a Double. I have a double that will contain a number such as 12.98 but when i try to show it in a textbox it shows as 12.98000000000000000 I know this is because its double but im unsure about to to retrive only as far as the .98 and get rid of all the 00000000000000
View 2 RepliesHere is what I have: An excel sheet full of Companies, Contacts, and emails.
There are duplicates of all three. Here is what I need to do: Strip out all duplicates based on email.
Is there anyone that can point me in the right direction?
I have a VB 2008 Express program that uses a sequence of functions to move a set of image controls randomily until they meet some criteria as returned by a function, named here Passed().The random placements can result in an unsolvable solution, i.e. an infinite loop; So I've implemented a timer check that triggers just longer then the typical solution time (~2 seconds). Assumption being that any attempt longer then typical is likely headed to oblivion.
Upon timer trigger I attempt to reset all the images to a known location and simply recall the preceeding functions to again try placing them until they meet my desired outcome.I believe I am encountering an out of memory type error, due to an apparent corruption of the display (great big white area appears for no apparent reason and program never returns without manual halt). Program does appear to restart properly a couple of times before this 'lock-up' occurs.
Example of my code,
Public CnameA, CnameB as String
Public Cmax as Integer = 10
Private Sub Form1_Load(...)
[code]...
Is it possible that the calling of New each time might be filling up the available heap / memory (there are a lot more images then the 5 demonstrated here. I am unsure how to clear it and even if I did would clearing the memory associated with New Point () cause my images to not be displayed?
I have this
CODE:
The var have a value like:
When the value pass to the textbox i have:
Need to put the value with point and not comma in textbox...
I was wondering if there's a way to add points to something defined like this
[Code]....
How can I Tell Visual Basic or Studio to alter the entry point other that its default one(The first Form)[url]....
View 4 RepliesUsing VS2008 and all I want to do is have a page where the user clicks on a button and the Save File Dialog pops up, the user finds the Power Point doc using the Save File Dialog popup. Once the Power Point doc is found the user clicks on the Save button on the Save File Dialog popup. And the Power Point doc is then saved to a server on the network.
View 1 RepliesI want to know how I can convert string to a point ( {X=150, Y=150} ) I'm having a little trouble figuring this one out.
View 2 Replieshow to add multiple text to a point pair list in Zedgraph. Add text to one point pair can be done like this:
Dim myPane As GraphPane = zg1.GraphPane
Dim TextObj As New ZedGraph.TextObj("High", 10, 10, CoordType.AxisXYScale, AlignH.Center, AlignV.Center)
[Code]....
Theres a problem with the code above when the graph scrolls the text is following as it should, but it's also visible in the pane background.
I want only 2 digit after decimal point WITHOUT rounding..but format function return value after rounding u can try
Format(0.016,"0.00")
this return "0.02"
but i want "0.01"
OR any function which can use instead of 'format'..?
The other night i was reading an article on preventing reverse engineering and i found out that you can check to see if their has been a break point that has been added into your applicaiton.How would i check if their has been a break point added?
View 2 RepliesI need code for Moving mouse from any point to coordinates 10,10 and click it.
View 2 Replies