VS 2010 Move On From GDI+

Sep 12, 2011

I am working on a little football simulator along similar lines to the Football Manager games. For those who aren't familiar with what they look like, here is an image. So yeah I just have little circles running around on the field. Things are fine but I hate the fact that GDI+, as far as I can tell, is pretty much entirely CPU driven. I mean I am trying to make a video game here and it seems like a waste of the graphics card. In terms of performance, it can be smooth but at other times is choppy.

In another thread I asked about multithreading (which I kind of have the hang of now) and when I run a bunch of tasks in the background the GDI+ performance goes right down, I guess because the CPU is being heavily taxed. I guess I could make sure there isn't much background processing from the game when using the GDI+ but I still don't like having the animation so CPU dependent.

[Code]....

View 39 Replies


ADVERTISEMENT

VS 2010 Dataset Move To First Record?

Mar 14, 2011

Below mentioned codes I used in VB 0.6, now I want to use the same codes in VB.NET Windows Form (VS2010)

With EMPrecordset
EMPrecordset.MoveFirst
Total = EMPrecordset.Fields("OT")

[code].....

View 1 Replies

VS 2010 Drop Items While Move

Jun 7, 2011

I wrote already a program where 2 sheep are moving all over the form , but i want from them to drop a bottle of milk while they are moving by some random time. And when the player take that click on that milk bottle to recive +5 points but this is easy, the hard part is the drop.

View 16 Replies

VS 2010 ListBox Move Item Up Or Down?

Jan 26, 2012

I need help moving a listbox item UP or DOWN. VB2010 is like 2008 so dont say that i know the 08 code, but not 2010 code. (sorry if i seem rude, i talk like this alot)

View 14 Replies

VS 2010 Make The Mouse Move?

Oct 27, 2011

I have very much a noob at coding for VB. I was wondering if i can make it so if u click button1 it will move your mouse to a location. Buuutt if its possible. Smoothly, not super fast the mouse is magically at your location.

View 4 Replies

VS 2010 Making A Character Move?

Oct 22, 2011

This is actually not really a question about vb, but about how to make a code.I'm making a RPG game and I want to make my character have "normal" movement. The problem is actually when I just hold down one of my movement keys (a, s, d, w) my character will jump out of the screen because it's going to fast. here is my movement sub:

Private Sub frmMain_KeyDown(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
'MOVEMENT'

[code].....

View 2 Replies

VS 2010 Move A Program That Already Is Running?

Jun 17, 2012

i want to move a program that already is running, and by move, i mean change the x and y coordinates of the application on the screen. how would i go about doing this?

View 4 Replies

VS 2010 Move To The Last Record On DatabaseTable?

Feb 28, 2011

I'm using Visual Basic 2010 and my database on SQL Server,maintaining a table "tblSalesLog" with field InvoiceNo etc... Sir my requirement is when I create a NEW Invoice on my windows form the last Invoice number should be printed on a Textbox so, I can follow what number will be the next, because the InvoiceNo maintained manually

View 10 Replies

VS 2010 - Find Image And Move Cursor To It?

Feb 19, 2012

It is very easy to move your cursor to a specific coordinate but my question here is how do you move your cursor to an image? Now what this would involve doing is importing an image so the program understands it, then finding that image on your screen (maybe through RGB colors). How exactly do you do this? What is the procedure?

Say I want to import this image: Now I want the program to find that image on the screen (THE START BUTTON) and then move my cursor on it.
so cursor.position = new point(the image)

View 10 Replies

VS 2010 Grab Picturebox To Move The Form?

Dec 26, 2009

A new journey, A new problem. As I downloaded VS2010 Today, there's a new UI, New Code, new problems.

Now I looked for a code that seemed to work for the VS2008, I found the one .Paul made, but it sure didn't work for me. Is there anyone who managed this on the new 2010? Please tell me.

If there were any confusion what I really wanted, I'll explain.

Mousedown on Picturebox = Move around the form free.

View 5 Replies

VS 2010 Make A Shape Move In A Square?

Apr 9, 2012

I am trying to make a shape move in a rectangular route clockwise. Right now I am only able to make the shape go right, down, left but not back up again. Whenever I try to make the shape return to its original position, the shape moves back up at the wrong place.

Public Class Form1
Public movingright1 As Integer
Public movingdown1 As Integer

[Code]......

View 1 Replies

VS 2010 Make Program Move By Dragging Anywhere?

Jan 4, 2012

Normally you would move a program around by dragging the bar at the top of the window, agreed? How can you change a form in VB to move around when dragging anywhere on the form apart from a button?

View 17 Replies

VS 2010 Using Up / Down Arrow Keys To Move Through Textboxes

Feb 25, 2011

How would I go about doing this? I was thinking I could possibly use Tab index?

View 4 Replies

VS 2010 : Make Arrow Keys Move An Object?

Apr 18, 2012

there is this picture on the form How would you make arrow keys move the object around the screen?Also how would you make buttons correspond to arrow keys?

View 3 Replies

VS 2010 Copy And Move Data Between Two Access Databases?

Feb 27, 2012

I have two MS Access database; Mydb1 and Mydb2. I would like to do the following:

1. Copy all records in table (MyTable1) from Mydb1 to Mydb2. MyTable1 also exists in Mydb2

2. Move all records in table (MyTable2) from Mydb1 to Mydb2. MyTable2 also exists in Mydb2 which needs to be flushed.

View 5 Replies

VS 2010 Itextsharp Image Move On Next Page For No Reason

Jun 3, 2012

I am placing and image using this [code]It works perfectly however when my document is extended to second or third page.. it does not stays on the first page.. it stays on same position however moves to the last page

View 1 Replies

VS 2010 Make An Opponent Move Randomly Without Jumping?

Mar 1, 2012

so my goal is to get a picturebox to move in random directions and smoothly (like a character moving straight in a game) without using thread.sleep and me.refresh (and also without animation atm). Would anyone be able to guide me on how to accomplish this?The reason I want to do this is because when I need to use like 3 threads to move 3 different things around smoothly my computer slows down too much.here's my code now without all the other subs used to place the random code in it's own thread. There's a lot of other code too so I can't really post the entire thing:

Private Sub random_movements(ByVal e As Integer, ByVal speed As Integer, ByVal ctrl As Control)
Dim location_x As Integer = ctrl.Location.X

[code].....

View 2 Replies

VS 2010 Move Mouse To A Pixel Location Of A Program?

Mar 10, 2012

How can I move the mouse to a pixel location of a program?[code]I know it doesn't work, but I'm trying to make it easier to understand what I'm trying to do.

View 5 Replies

VS 2010 Programmatically Select A Node In Treeview After Move?

Feb 5, 2012

I'm using the following sub routines to allow the user to move treeview nodes up/down:

Public Sub MoveNodeUp(ByVal Nod As TreeNode)
Try
If Not (Nod.PrevNode Is Nothing) Then
Nod.Parent.Nodes.Insert(Nod.Index - 1, CType(Nod.Clone, TreeNode))
Nod.Remove()

[Code]...

Is there a simple way to keep the moved node selected after the move?

View 3 Replies

Move - Xcopy Equivlent - Copy And Move The Entire Contents Of A Directory To Another

Jan 6, 2012

how do i copy and move the entier contents of a directory to another ussing VB.net then also delete the files from there original directory?

View 1 Replies

Listboxes In Array: Move To Next Item, And Move To Next Listbox Command?

Dec 26, 2009

I have three listboxes in an array and on form_load the listboxes initially select the fifth item in each listbox:

Private Sub frmSample_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
For i As Integer = 1 To 3

View 8 Replies

VS 2010 Maze - Moving A PictureBox Between LineShape Lines Using Buttons To Move It

Apr 23, 2011

I'm doing a maze using VB10. its about moving a PictureBox between LineShape lines using buttons to move it. the problem is, can I make the picture not to move through the LineShape? if so how? or should I use something else other than the LineShape and another question can i save the progress of the maze and come back to it later? if so does it require using a database to save the location of the PictureBox?

View 3 Replies

VS 2010 Copy / Move / Rename & Delete A File In Program Files Directory?

Aug 30, 2010

how can i either copy/move/rename & delete a file in program files directory? [c ode]i already have the form which grabs the updated file and it save it to temp directory ready for copying, just stuck here as of the access denied.

View 4 Replies

VS 2008 Error "WithEvents Variable 'Move' Conflicts With Event 'Move' In The Base Class 'Control' And Should Be Declared Shadows"

Sep 3, 2010

What does this error mean? I havent modified anything in the designer code, but its giving me an error? WithEvents variable 'Move' conflicts with event 'Move' in the base class 'Control' and should be declared 'Shadows'. The error relates to Friend WithEvents Move As System.Windows.Forms.DataGridViewCheckBoxColumn

View 1 Replies

Move Between Forms - The Menu Move Step By Step When The User Move Between Forms

Apr 8, 2011

Im working on my project. and i just asking if i can used this Property in vb. NET [URL] when i install adobe photoshop .. i see on the leff installer...something like a menu and the menu move step by step when the user move between Forms

Welcome
Serial Number
Adobe ID
Install
Finish

How i can create like this in VB .NET

View 1 Replies

VS 2010 - Form - MoveWindow API Alternative - Resize & Move A Form Using VB Commands

Mar 22, 2012

What is the best way to resize & move a form using just VB commands? I have a form that I need to set the Height and Top props, problem is that takes two calls and there is a noticable flicker. I tried using SuspendLayout/ResumeLayout, DoubleBuffered, swaping the top and height calls around, etc, but nothing seems to help. The test forms only have one small listview and one or two buttons. [Code]

View 2 Replies

VS 2010 Make A Code That Unzips Files And Then Move Those Files Into Another Zip File?

Feb 23, 2012

How do i make a code that unzips files and then move those files into another zip file?

View 2 Replies

VS 2010 Any Tips Or Techniques For Debugging In Mouse Move Events / When Mouse Button Is Down / Has To Stay That Way?

Jun 6, 2011

I'm currently debugging a form that sets a flag when the mouse button is pressed, then clears the flag when the mouse button is released. As long as the mouse button is pressed, the user can move the mouse around and a few things happen depending on where they move. One of the things that happens is that a timer starts, or stops, and a few things change color depending on the mouse position. The timer starts when it should, then stops when it should, but once stopped, it is not re-starting when it should. I can verify that MouseMove events are getting through, because coloring changes as I move the mouse, as it should. This would be a simple thing to debug...except that it requires the darn mouse button to be down, and it uses the mouse move event. Anybody who has put a breakpoint in a mouse move event handler knows the issue: There are THOUSANDS of them. Worse yet, since the mouse button is necessary for switching to the IDE, as well as setting a breakpoint (technically, a keyboard shortcut could do this if I could shift focus), I can't wait for the problem to happen, then switch to the IDE and set a breakpoint to see what is happening then.Does anybody have any tips or techniques for debugging in mouse move events when the mouse button is down and has to stay that way? As it is, I'm going to have to write some funky code into the method just so that I have a place to get a breakpoint when I need it without breaking on every one of the mouse move events.

View 7 Replies

VS 2010 Object Rotation And Move Object With Arrow Keys?

Feb 8, 2011

I want to learn how to rotate an object by direction and speed and also how to move an object using the arrow keys?

View 2 Replies

VS 2010 Enter A X And Y Coordinate And Have The Ship Move To That Coordinate?

Sep 18, 2011

I am currently making a 2d game where a spaceship flies around a 2d map.Currently, I am moving the ship with keys, but would like to implement mouse clicking as well.I am wanting to enter an x and y coordinate and have the ship move to that coordinate.

These are my variables:

PlayerFacingAngle, PlayerPositionX, PlayerPositionY, PlayerVelocityX and PlayerVelocityY

View 3 Replies







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