VS 2010 - Making Grid Or Picture With X / Y Values

Dec 16, 2010

I've been trying to make a grid to test some AI stuff I'm working on. I managed to do it using rectangles and graphics.rectangle (pens.black, rect) by using a vid on youtube, but it made the application virtually useless because of all the memory it was using. I don't need it to be an actual grid, but I do need it to have values as if it was a grid, so that I can issue commands (x,y coords). (I have been searching the forums for over an hour, but all examples are either useless or cant be converted correctly).

View 6 Replies


ADVERTISEMENT

Vb 2010 - Map Editor - Making The Grid Invisible If De-deselect The Option "Grid On"

Jun 12, 2011

I have a few problems with making a map editor, how to make one reply and ill give you my msn well actually this problem: its not making the grid invisible if you de-deselect the option "Grid On" because the rect's have already been drawn. So I need to know how you can delete them.

[Code]...

View 4 Replies

See If The Values A User Inputs Into 2 Textboxs Equals The Values Assigned To A Picture?

Apr 21, 2010

I want to be able to see if the values a user inputs into 2 textboxs equals the values assigned to a picture. I put these values in the picture's name and tag. Also the picturebox is getting the image from a random function correlating to an imagelist. How would i go about thisI thought of maybe using a checkbox and coding

If picturebox1.image.tag = ("12") _
and textbox1.text = 1 _
and textbox2.text = 2 Then
checkbox1.checked = true

unfortunatly when i debug it says the picturebox1.image.tag = Nothing

View 3 Replies

Make A Grid Across A Picture?

Mar 5, 2012

I want to make a grid across a picture yet lines don't go across and what i can find on it seems pretty complex to do.

View 1 Replies

Randomizing A Picture Grid?

Jul 28, 2009

So I have code that will create a picture grid and then alignes them into a collage from left to right.

View 16 Replies

Making A 3d Picture Using Numbers?

Nov 10, 2009

I am making a application that you enter 3 number one for length, width, and height of a rectangle.It needs to display a picture showing all three.i am using windows form application to do this wil three text boxes to enter the numbers.

View 3 Replies

Making Syncing Selected Rows In A Data Grid View?

Mar 17, 2012

I am trying to make an address book and need help. I am in the middle of making a search function for the program and I've got that working fine. What I would like to do is take the row that is selected from the search results and make that the selected entry for the main form. To explain what I mean I will include pics..

View 6 Replies

Making Own Picture Viewing Program?

Jun 12, 2011

(my first question) For starters.I am using Visual C++ 2010 I have VERY limited knowledge (I am not sure how to declare a variable or convert to strings.I took a Visual Basic course in school so I do understand SOME basics... just not the right language

I am trying to make a program that can open pictures in its own PictureBox. I have the form already made, and I had it working with a combobox with the list of all the different pictures, a button to load the picture depending on the selected item in the
combobox (MANY MANY if statements), and i also added a previous and next image pair of buttons (200% more if statements). I was happy with it, except whenever I added a new picture I had to add many lines of code... So i figured i can use this openfiledialog
and open them that way.

what i have so far is when i press "btnLoad" it opens the "ofdPictures" {openfiledialog}

what i need it to do is when i select my picture and press "open", it open the image in the picture box "picPictures", which is in my form.from what i understand with playing around with openfiledialog in VB is that the command this->ofdPictures->FileName

makes the selected file a string... but i think i have to make it = a string variable...

now, i think i fixed that by adding to "private: System::Void ofdPictures_FileOk"

[Code]...

View 2 Replies

Making The Picture Open In The Picturebox?

Dec 18, 2009

Im setting the standard program to .jpg files to my program. So when it starts it shows the picture in a picturebox ofcourse.

My problems:I want the pictures standard size to be the size of the picturebox.Making the picture open in the picturebox?

View 19 Replies

VS 2008 Making A Picture Box Have A Transparency?

Oct 26, 2009

Is there a way of making a Picture Box have a transparency so that any objects (e.g buttons) that are layered underneath the picture box will be shown through?

Or if there is any other way of getting the mouse coordinates only on the form. So when the mouse cursor is placed at 20,20 on the form it will give back the coordinates 20,20 no matter where the form is placed on the screen

View 5 Replies

Codes For VB For Making A Picture Box Of A Frog Jumping Up And Down?

Nov 21, 2011

I am making a visual basic project in making a frog jumps up and down . and also indicating its increments.

View 2 Replies

Making Random Picture Boxes Go On Form

Nov 30, 2011

i am making a game in visual basic and when the picture box that you have to shoot resets, sometimes it resets off the form i use this code to make the picture box move randomly.[code]

View 6 Replies

Creating An Object - Making A Picture Have The Properties Of A Checkbox

Apr 12, 2009

I was wondering if there is a way of making a picture have the properties of a checkbox. I want to have clickable stars that change color (from white to yellow) everytime the user clicks on them to represent the rating they put on certain foods.

View 5 Replies

Game Programming :: Making A Picture Box Move Right Then Left?

Jan 20, 2011

I want a picbox to move across a screen then back to where it started (for a space invader game:

the following code is what I have for this task.

Code:
Private Sub AlienMovement_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AlienMovement.Tick
If Alien1.Location.X > 20 Then

[Code]....

I can't make it < because thats not logical, can't make it = becasue that doesn't work, can't make it > becasue then it will only bounce back once. Is there another variable I could use?

View 5 Replies

Making A Program That Generates A Picture Of Armor From A Website?

May 25, 2009

I'm making a program that generates a picture of armor from a website, this armor is the armor a player is wearing on a game called halo 3. My problem is that I have the list of armor for the two races in the game in the resources and I need to know if this would be the right

Head.items.addrange(my.resources.SpartanH) Head is the combobox SpartanH is the name of the text file in my resources, if I've got my code all wrong, will someone please correct me?

View 2 Replies

Making An Application Where User Draws A Shape On A Picture Box?

Dec 25, 2010

I'm making an application where a user draws a shape on a picture box( this will be saved on a bitmap image), then another user has to draw on that shape (=follow it ) . if the 2nd user goes too far from the line then an error message will appear.

for example( in case i couldn't clarify this well!)the 1st user draws a a vertical line, the 2nd user has to follow it, if-while drawing on it- he gets too far horizontally, there would be the error.

I'm currently thinking of comparing every point by the 2nd user to its equivalent in an array containing the points by the first user.

View 5 Replies

Security Camera - Making Picture Automatically From DLL Files

Jan 16, 2011

We bought a DIY security camera, the camera is making automatically mpegs if a movement is recognized. A picture can be made with a delivered program. We have the idea to make a program with the delivered dll files to make automatically pictures.
timestretchDMO.dll
GPIProxy.dll
expDMO.dll
DVCtrl.dll
DSPDMO.dll

View 9 Replies

Making Application Send Message When Picture Background Is A Certain Color

Oct 7, 2011

It detects the color fine and the picture background changes to the color my mouse is pointing at, but when it changes to one of the colors its ment to send me a msg it doesn't..[code]

View 2 Replies

Making Application Send Message When Picture Background Is A Certain Color?

Dec 20, 2011

It detects the color fine and the picture background changes to the color my mouse is pointing at, but when it changes to one of the colors its ment to send me a msg it doesn't

Public Class Form1
Dim color As Integer
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles

[code].....

View 1 Replies

Loading Values Of Grid Into Textbox

Jul 16, 2011

I have written general module to transfer the grid values into respective textbox. For that I pass Listview control of form & parent control ( e. g. groupbox ) of textbox.

The module loop trrough each column of grid & store the value in respected textbox ( the textbox names are identical as that of grid column) It works fine, but when I pass tabcontrol it does not work

View 4 Replies

Get DataGridView ColumnHeaders Values Without Scrolling The Whole Grid

Feb 6, 2012

I generate a DataGridView using the result of a query. The query generates a LOT of columns (more than 75). Obviously the DataGridView does not show all of them. I wrote a small procedure that extracts data from the DataGridView and generates an Excel file ora .csv file.

[Code]...

View 1 Replies

How To Get Values From Dynamic Text Box In Grid View

Oct 23, 2009

i have created one dynamic gridview with template fields. i have a problem with retriving data from the text box. how can i find the text box control.[code]

View 2 Replies

How To Load Grid Based On Values In Xml File

Nov 23, 2010

I'm trying to load several grids based on the Type values in my xml file. For example my xml file is in the following format:[code]How do I accomplish this when in the load event of my windows form?

View 2 Replies

Locking Form Values Back To An Active Grid Row

Jun 24, 2011

I have an infratistics grid that when I click on a row, the activerow gets set, then I click a button that will open a terminal form and ssh to an IP address in one of the activerow cells. It's not a problem until I connect to another row afterwards and it resets the activerow causing both forms to refer back to the latest activerow which would only be correct for the latest form opened. The problem then is that the terminal form refers back to the activerow cells for various updates. From my main form where the grid is, I open a new frmWodTelnet form to connect to the IP like this: [Code]

I haven't actually tried this yet, can't until next week just trying to get a grasp on how best to proceed. Does this look like it might work out for what I need, to lock the form values back to the original row until the form is closed? Or is there a better option I should be looking at.

View 4 Replies

Populate The Grid Values To Text Box While Clicking The Exact Row?

Oct 9, 2009

I am using VS2005 vb. I have two textboxes and one grid with two columns. I want to populate the grid values to text box while clicking the exact row?

View 1 Replies

Select The Values Of Radio Button In Grid View?

Jun 11, 2011

I am working on a grid view where I have an acitve column which has radio button, user can select either yes or no for the active column. depending on the selection I am able to update the database.

I am using the code below to get the selected value of the row in the grid view
For i = 0 To Request.Form.Count - 1
Name = Request.Form.AllKeys(i)

[code].....

View 1 Replies

Combo + Datagridview + Inserting Grid Values To Access Database?

Jan 15, 2012

I followed the suggestion from [URL].. this thread. however i face a bit of a problem in my case i have a combobox at row(i).cells(0) the code seems to take the last new rows where there's not record and shows error the debug error msg is A first chance exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dll INSERT into taken(typeID,quantity) VALUES (5,39)INSERT into taken(typeID,quantity) VALUES (,)

[Code]...

View 1 Replies

DataGridView - Programmatically Select A ROW Based On Values Find In The Grid?

Nov 19, 2010

I have a DataGridView with 3 columns (metric_key, metric_name, metric_value).There are for example, 6 ROWS in this table (6 different metrics), added programmatically (DGV is not bound in any way)

Now, when I assign values in my grid I do:

dataGridView1.item("Metric_value",0).value = "value of the metric in row 0, in the column named "metric_Value".

[Code]...

View 1 Replies

Getting Cell Values Into Variables In DataGridView Based On Grid Coordinates?

Mar 20, 2011

Im working with a DataGridView with an imported CSV file where the values are delimited with (,).. The grid works perfectly fine. My ultimate goal is to hide the grid out of view from the user and access the data in the grid based on the coordinates of the grid specified i.e (The cell in column 5, row 6 contains the value "Taco") and I want to save that value to a variable...Eventually I want to loop through all the values of a column and save them to individual variables to be later used. So far, this is what I have...

Dim sReader As New StreamReader("book1.csv")
Dim Record() As String
For x As Integer = 0 To 17[code]....

Presently, that will only display the data in column 0, row 0 in those labels...

Note: 17 in the for loop is the amount of columns in the data i provided.. that number will never change.

View 1 Replies

Looping Through Data Grid View And Inserting Values Into Database?

Apr 5, 2011

Currently I have a problem with updating my database with values in my Data Grid View.

On my form I have a "Populate" button and "Submit Details" button.

The "Populate" button fills my Data Grid with numerous lines of data.

On the click event for "Submit Details" I want this data to be inserted into a table in my DataBase by looping through each record.

For Each dgi As DataGridView In DataGridView1.Rows

Dim productCode As String = DirectCast(dgi.FindControl("product"), Label).Text
Dim description As String = DirectCast(dgi.FindControl("description"), Label).Text
Dim quantity As String = DirectCast(dgi.FindControl("order_qty"), Label).Text

[cODE].....

View 7 Replies







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