Check If Two Paths Point To The Same Place?
Mar 14, 2012
I want to check if two directories are pointing to the same place. Of course string based compare can be done easy but I also want to check for the situation in which a mapping points to the same location. Hence if m:dataapplicApicturesjpg n:applicApicturesjpg point to the same location it must be flagged. I have already searched I know there is something like GetFileInformationByHandle but I don't want to create a file, so I have not got a handle.
View 1 Replies
ADVERTISEMENT
Apr 6, 2009
I am having a problem with a program I made. Its an application for placing points on an image. It has a picture box inside a panel so the image can be scrolled. The problem is that depending where the point is placed, the point drawn is shifted.
Here is the
Public Class Landmarks
Dim ima, ext As String
Dim picsize(2) As Integer
Dim x, y As Integer
Dim Img As Image
[Code] .....
View 1 Replies
Apr 14, 2012
I have a background work reading an XML file. I want it to return an array of results which happen to be values.
I want to be able to place all the values as a point on a panel as an X asis which will be lined up with a y+10 pixels on the y axis.
I have the BGW reading the XML file and getting the values. all i need to know is how to return an array list or something similar to a can draw my line graph
View 1 Replies
Nov 27, 2010
If I have some polygon lat lon coordinates stored in sqlserver db. how would I query it to see if a point was in contained within a polygon?
View 2 Replies
Sep 13, 2010
How to check the decimal place of a input value?
View 5 Replies
Oct 25, 2011
Check Point of Origin, Reject TCP Connection: Content removed.
View 11 Replies
Dec 10, 2009
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 Replies
Nov 9, 2009
Is there a way I can check the place of the character in a line or string? For example: I want them to guess 1214 So how would I make sure each character is in the right place?
View 2 Replies
Aug 22, 2009
This is for my game but posted it here as it doesn't specifically relate to game programming. Basically I have an integer variable called FoodIndex which gets incremented throughout the game. Every time it gets incremented I want to test if it is a multiple of 20 so that I can place A bonus item on the screen.
View 2 Replies
Jun 4, 2009
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 Replies
Feb 14, 2011
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 Replies
Dec 31, 2010
I'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 Replies
May 24, 2010
I 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].....
View 11 Replies
Mar 11, 2010
Like I imagine everyone, I often have problems navigating my code because the flow can jump from place to place. For example, if my code calls routine1, and I then want to go to routine1's code, I know that I can click in the dropdown menu and it will take me to that sub. But wouldn't it be easier if I could somehow right click on the call to routine way and select something like 'take me there' which would transport me from the function making the call to the code for the function being called? Then it would be easy to hop from place to place.
View 1 Replies
Jul 29, 2009
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
View 9 Replies
Mar 11, 2012
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 Replies
Feb 20, 2010
I 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 Replies
Jan 17, 2009
I 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]....
View 1 Replies
Dec 18, 2011
How copy folder with its content from place to another place. example from C: to D:
View 15 Replies
Apr 10, 2012
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 Replies
Mar 14, 2009
I 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.
View 6 Replies
May 9, 2010
come out with the codes for moving the mouse pointer from point (200, 100) to point (300, 400), repeatedly. Using VB 2008.
View 8 Replies
Jul 28, 2010
I 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.
View 12 Replies
Jun 21, 2011
My form cant move i set none to formborderstyle and made my form transparent using
CODE:
So now i cant move my form from place to place.
View 4 Replies
Nov 30, 2011
I am learning Visual Basic 2010 and I am working on a space combat program for my own education and amusement (a simulation of the Honorverse space combat system). I have a routine to add ships to the enemy ship roster and then place them randomly on the viewscreen. When I step through the sub with the debugger, it works fine, but when I run it without stopping, it wants to place all the objects in the same place on the screen. It's actually assigning 2 random numbers pertaining to the size of the viewscreen and assigning those numbers to GameObjectScreenLocation through GameObjectWorldLocation.X and GameObjectWorldLocation.Y. The objects are fully initialized to 0 in their constructor, FYI. Code is below:
[Code]....
View 3 Replies
Jun 21, 2010
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 Replies
Mar 30, 2012
assuming i have an isoceles triangle, where i know the height + base width, how
can i calculate the width of that triangle at 1/3 of the distance from the point + 2/3 of the distance from the point?
i thought it'd be simply 1/3 base width + 2/3 base width, but my drawing is +/- a few pixels when i resize it?
View 4 Replies
Jan 16, 2010
How do yo convert a 3d point into a 2d point that can be displayed on the screen? This is the basic code that I need:
Dim ScreenXCoord as integer
Dim ScreenYCoord as integer
Private Sub ConvertPoint(PointXCoord as integer, PointYCoord as integer,
[Code[,,,,,
View 6 Replies
Aug 26, 2009
In more and more of my functions (althought they still work) i'm getting a warning the function doesn't return a value on all code paths.[code]...
View 3 Replies
Jan 14, 2010
My development machine runs Windows XP, but the target machine runs Windows 2000 with .NET 2.0.I've set my compile options to compile 2.0, which is fine.However, I have some references which are causing issues.For example, Microsoft.Office.Interop.Outlook.dll - in VS2008 the path is shows as the C:Windowsassembly folder which works fine. Until the app is built and run on the target machine and fails:Could not load file or assembly 'Microsoft.Office.Interop.Outlook, Version=12.0.0.0, Culture-neutrl, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.Presumably because on Windows 2000 the assembly folder is C:WINNT.I cannot work out how to target the WINNT folder for my references.
View 9 Replies