Moving From Point (200, 100) To Point (300, 400) Repeatedly?
May 9, 2010come out with the codes for moving the mouse pointer from point (200, 100) to point (300, 400), repeatedly. Using VB 2008.
View 8 Repliescome out with the codes for moving the mouse pointer from point (200, 100) to point (300, 400), repeatedly. Using VB 2008.
View 8 RepliesI 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 RepliesI 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 am using splitContainer1 to split two parts of the panel. I can move the splitterbar from the left to the right. I want to know how i can block the splitterbar from being moving when reaction to the location point 202?
View 3 RepliesI have a picturebox that is moving across the screen. At the moment I want it too stop at a certain point until a button that is called next is pressed. I then want the picture box to carry on moving across the screen (The total number of times I want this to happen is 5)
Dim nextcommand As Integer = 7
Dim rewindcommand As Integer = 7
Dim x As Integer = 144
Dim y As Integer = 44
Private Sub NextButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NextButton.Click
[Code] .....
I need code for Moving mouse from any point to coordinates 10,10 and click it.
View 2 RepliesI'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]....
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.
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.
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 Repliesassuming 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?
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[,,,,,
If (mybyte And &H80) = &H80 then
I'm interested in this line mostly but the full sub is below. I get the point of the sub. It is turning hex D5 into binary but I can't figure what this line is doing. It looks like it's saying if (213 And 128) = 128 then... I don't understand the comparison or math or whatever.
Dim mybyte As Long = &HD5
Dim x As Int32
For x = 0 To 7
[Code].....
I work for a Aerial advertising company, and am trying to build a app that will measure a distance from one zip code to another, and then spit out a price (like if somebody wanted to fly a "Please Merry me" banner for their girlfriend) based on that distance (in air miles, not road travel). I guess I will have to use a Map api, but how in the world do I do this? I have built a very basic app, so I know some progamming, but I have never used a API.
View 1 RepliesIf I ping [URL], for example, I got:
[Code]...
That means [URL] points to 173.194.38.130 How to do so with vb.net?
In created a small window's form app and when I try to install it on a cpu running Vista I get the following error when I run the app:"the procedure entry point lstrcpyml could not be located in the dynamic link library MSDART.dll"
View 3 RepliesThe following code is designer generated:
Me.lblXRay.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
What's the 8.0! mean?
How to get the second decimal point?
View 7 RepliesID is entered to a textbox and want to locate the corresponding row in the datagridview. And show up in that row (select that row) on the screen.
View 2 Repliesi know it might be impossible to achieve (as i've been reading from another articles) but does anyone know how to set a dll entry point in VB.net project? I have created a VB.net dll and trying to call that dll from cobol (unmanaged code). in Cobol, i can only use the entry point statement to call VB.net dll (cannot add reference to it). as consequence, i'm getting "called program not found" (or in VB error is equal to "can't find dll entry point")
View 2 RepliesI have this code for placing food in my snake game, but it is not working. It says the structure 'system.drawing.point' has no default property.
Public Sub PlaceNewFood(Optional ByVal EmptyCell As Boolean = False)
Dim rng As New Random
Dim fx, fy As Integer
[Code].....
I need to get the equivalent of Point and Size in C#.
When I tried to convert the code below from VB.NETto C#
New Size(Sw, Sh) I get this
new Size(Sw, Sh); Which gives an error The error am getting is The type or namespace name 'Size' could not be found (are you missing a using directive or an assembly reference?)EDIT 2I have been using vb in vs2008, which does not promt me to import system.drawing, perhaps it was doing it in the background so i didn't expect to do it in c# in vs2008
I have a value that shows a integer value between 0-100. For a little math, I need to be able to add a decimal in front of the value. So if the value was 50%, I need it really to be .50%.
View 4 RepliesI would like to know how do I add points to the checkboxes and how do I add the checked boxes up to get the overall points?
Below I have an attachment on roughly how I wan it to works in case my words are not that clear.