Determining Point Chosen?

Sep 8, 2010

How can I determine which box a user has chosen from the points array I stored it in? EX:

Points.add(box1)

Points.add(box2)

Points.add(box3)

User selects box2

How can I determine from the points array(x) which box he chose?

View 19 Replies


ADVERTISEMENT

VS 2008 Set A Point Without Setting Point.x And Point.y Separately

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

Finding A Point On A Diagonal Line When Have The Start Point And End Point Of The Line?

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

VS 2010 : Search For Text Within A String (Starting Point And Ending Point)?

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

VS 2010 Loop In A Variable And Grab Info From Point A To Point B?

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

Add Point And Delete Point When The User Clicks The Picture?

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

Calculating Point-to-point Directions On A 2-D Grid?

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

Construct An Icon Setting Point By Point

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

Draw Arc From Start Point, End Point And Radius?

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

Draw Line From One Point To Another Point?

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

Move From Point A To Point B Along An Angle?

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

Moving From Point (200, 100) To Point (300, 400) Repeatedly?

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

Scrape HTML, From Point A To Point B?

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

(GAME)rotate Image Facing Mouse Cursor, Move Image From Point A To Point B?

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

.net - Query For Retrieving The Chosen Data?

Nov 18, 2011

Im not good in querying. I would like to ask if this query works.I want to retrieve starttime, endtime and sessioncost from the table SESSION of my database. my program will be an autorun.

Dim sql As String = "select STARTTIME, ENDTIME, SESSIONCOST from SESSIONS where CLIENTID = (?)"

View 2 Replies

Combo Boxes If One Value Is Chosen - The Other Won't Have That Value Anymore

Jun 5, 2011

I have four comboxes all containing A,B,C,D. My problem is if I have chosen letter A on the first combobox, the last three won't have letter A anymore, then on the second combobox, if letter B is chosen, the last two will have C and D and so on.

View 8 Replies

How To Lock And Unlock Chosen Files

Jul 28, 2010

I would like to create a program which able to lock several files from unauthorized person to use and unlock it when the authorized person wants to use

View 12 Replies

Open Program Chosen By User

Jan 27, 2009

I'm trying to make an autoshutdown, that can, of course, shutdown your computer but also open a program when you want (I'm working with vb 2008 btw), I was thinking in using openfiledialog, get the path to a text box and then open the file with shell.

View 2 Replies

Playing A Chosen Music File?

Jun 14, 2012

So I'm making a multi-function clock for practice.

It's a clock, timer and alarm. It's all done except for the alarm. I want to be able to choose a song (mp3) with OpenFileDialog1 and then play it when I click a button. I'm thinking about using a hidden Windows Media Player control,

View 5 Replies

Starting A Program With A Chosen Path?

Nov 28, 2009

lock/delete this thread if you wish.

View 2 Replies

Validate That The Chosen Option Is Appropriate For The Rest Of The Row?

Aug 21, 2009

I've searched for a solution with no luck, can you help? I've a DataViewGrid with a DataGridViewComboBoxColumn, bound to a dataTable which all works fine but I need to undo the user selection in some cases.

When the user selects one of options I validate that the chosen option is appropriate for the rest of the row. I can do this in the CellValueChanged Event and easily determine if its good or bad - is this the correct event to do the check?

The problem I have is that I want to roll back to the default value in the DataGridViewComboBoxColumn if an invalid selection is made:

[Code]...

View 1 Replies

VS 2008 Saving The Chosen Date?

May 31, 2010

Im having problems in saving the date selected. When I clicked my save button, it is saving the current date not the date i choose. The date I selected is for the Birthday.Here is my code for saving:

Dim myBuilder As OleDb.OleDbCommandBuilder = New OleDb.OleDbCommandBuilder(dataAdapter)
If dt.Rows.Count <> 0 Then

[code].....

View 2 Replies

Can VB Play Clips Of Randomly Chosen Avi Files

Apr 3, 2011

Can a media player written in VB be modified to do this: randomly choose an avi file from a directory or subdirectory, choose a random starting point within that file and then play a clip of a random length (within user defined parameters) then without prompting repeat this sequence?

I would like just such a media player but there doesn't appear to be one already out there so my only other option is to write one myself. I know nothing about VB and last programmed in BASIC in the 90s. Before I invest time and effort in learning VB I need to know if it can actualy do this at all.

View 4 Replies

Display The Content Of Chosen Txt File In Textbox?

Aug 30, 2010

i need code for chose any txt file and opening it from open file dialog (if thr user click in open button)and display the content of chosen txt file in textbox

View 2 Replies

Find Screen Pixel Of Chosen Color?

Nov 8, 2010

How To Find Screen Pixel Of Choosen Color?

View 13 Replies

Insert The Chosen Value (male Or Female) Into The Database?

Mar 7, 2012

i ve got two radiobuttons one labelled male and the other labelled female and a client is supposed to choose which gender they are and insert it into the other database along with other information. I want to know how I can insert the chosen value (male or female) into the database

View 2 Replies

Report With Dynamic Columns (Chosen In Runtime)

Jul 22, 2010

I need to make a report but my columns will be chosen in run-time. I used to make report with crystal report by filling my data to query table and connect this query table with designed report by crystal report. but this time the user will choose the fields in run-time.

View 3 Replies

VS 2008 Start Downloading When Path Is Chosen?

Apr 12, 2009

i got the "downloder with progress bar" from some one on this site. but i want it go begin downloading when i have chosen my desired path. but i just dont know why

View 9 Replies

VS 2008 Starting A Program With A Chosen Path

Nov 28, 2009

VS 2008 Starting a program with a chosen path

View 6 Replies

Bingo Game, Change Color Of Chosen Items?

May 11, 2011

I have created the random bingo calls needed with the standard bingo letter restrictions.. i.e. B = 1 - 15, I = 16 - 30, etc. I have a form with 5 columns with B I N G O at the top and the corresponding numbers beneath. Those are labels named lblB1, lblB2, etc.

My problem is that I can't seem to figure out how to get get the text to change on the called tiles. Logically it would be easiest to use something like

varLabel="lbl" + varCalled
varCalled.Forecolor = red

Where varCalled is the ball number being called.But.. that is not the case. (I'm at work so can't submit the actual code at this time.. will do so later if needed)I've done some searching and can't find anything that helps out.. but searching for "change label color dynamically" comes up with how to change the color of a label at runtime.. not sure how else to search on it.

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved