Multiplication Game In VB Trouble Shoot

Feb 16, 2011

This is my assignment for tonight. If anyone can enlighten me as to why it doesn't work. I

know I haven't finished the timer, I trying to get results in the labels.[code...]

View 3 Replies


ADVERTISEMENT

Game Programming :: Transparant Images - Make A Game Which Basiclly Lets You Shoot Ducks

Feb 1, 2010

I am trying to make a game which basiclly lets you shoot ducks. i have a picture as a background (set as form image) i then have picturebox's with ducks flying flying around you shoot them the disapear etc.

My problem is the image. i have a picture of a duck and a blue square round it. and i would liketo make it transparant because birds dont fly with blue squares.

Below is an image to illistrate my problem

I have tried adding transparent background, transparant key etc

View 2 Replies

Game Programming :: How To Get Bullet From Planes To Shoot

Mar 6, 2008

So for my final project in my Visual Basic.net class I am making a airplane game quite similar to Space Invaders.I think I have a good idea as to how to get the bullet from the planes to shoot. However, I was wondering where exactly the bullet picture box is going to be placed. I don't understand it. Is it going to be under the picture box of the plane or what?

View 17 Replies

Game Programming :: Getting Bullets To Manually Shoot By Pressing A Spacebar?

May 26, 2011

up to now I've have been running my bullets on automatic fire, through 4 separate timers.My Nxt major task is to make my space bar shoot bullets. I have tried attempting to code the spacebar, for the first bullet. I was thinking that when the spacebar is pressed it turns on a timer, thus the bullet is fired. Then when the bullet hits the top of the screen or an alien the timer is turned off and bullet location is reset. Now the bullet1 no longer fires.I find the logic complicated but it should work.

my variables:
Code:
Public BulletMovement As System.Drawing.Point

[code].....

View 7 Replies

Popups Making Me Want To Shoot Myself?

Aug 11, 2010

i am having a tad of a problem when it comes to popups and new windows. I am currently opening new windows in my webbrowser using the href command and this has been working fine for about 40% of websites but I am running into a few problems as the other 60% of popups are still opening in Internet Explorer windows.I am currently using the

On Error Resume Next
Dim myElement As HtmlElement = CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Document.ActiveElement
Dim target As String = myElement.GetAttribute("href")[code]....

I am having problems loading login forms (asking for username and password to connect to the internet) and any window that uses javascript commands in the href to load the popups.For example:If anyone has encountered such a problem before and knows how to fix it it would be great if you could post up some code or a link to a walk through so I can see how its done.

View 2 Replies

Trouble With Classes And Functons

Oct 10, 2011

I thought I was beginning to grasp this function and class business, but it's still giving me a lot of trouble. I created a class for the character, with a function to randomly generate a number for damage, but I'm having trouble calling the function with a button click on the main form to test display a random number in my rich text box.[code]

View 5 Replies

Make My Character Shoot Bullets?

Nov 18, 2009

I have my character moving across the screen, I have enemies that randomly came at the character, and I have it so when the enemy collides with the character you loose a life.

But how do I have the character shoot bullets.

I know how to do the keypress, and make the bullets move with a timer. But I don't know how I can create an infinite amount of bullets that can fire.

View 4 Replies

Make The Enemy Shoot Bullets?

Apr 13, 2012

I am currently making a game like the worlds hardest game but with a difference. I have made 9 levels so far and am doing the boss level and i cant figure out how to make the boss shoot "bullets".there are two types of bullets the boss can shoot bullet1 - moves in a constant speed to the left after being shot bullet2 - moves in a constant speed to the left after being shot and follows the player on the y-axis The boss only follows the player on the y-axis(I have done this)The boss only shoots bullet1 until his health is below 50 then he increases the rate at which he shoots and randomly shoots bullets between bullet1 and bullet2The only way to win this game is to collect coins which randomly appears in the map, after you get the coin you decrease the bosses health by 5 (I have done this)If the player touches bullet or the boss then the level restarts (I have done this)

View 5 Replies

Syntax Trouble Building Xml From Linq

Jan 24, 2012

I am building an xml file with the help of Linq queries and I'm not sure why the code below doesn't work.[code]

View 1 Replies

Take A Remote Shoot With Digital Camera?

Mar 11, 2008

i have a problem with my graduation project, i need to take a picture shoot automatically based on a signal from the parallel port, and save the picture on the harddisk , so the MATLAB will read this picture to process it.

[Code]...

View 2 Replies

Trouble Splitting Comma In Array

Nov 29, 2009

So I'm trying to split a "," from an array that I parsed after the xml file is loaded. I tried several things.[code]

View 10 Replies

WPF Trouble Updating A Textbox From A Variable

Jun 15, 2012

Using WPF, and VB.net, I want to update a textbox in a textblock with the current date and time. I use a timer, and it seems to be firing, and setting an object property to "Now".And I am using iNotifyPropertyChanged.All I get is an empty textbox with no data in it. Can you help? Maybe my context is off? [code]

View 4 Replies

VS 2008 Trouble With Emailing And Then Deleting Emailed Files

Aug 12, 2010

My app looks in a folder for all the pdf files and then emails it to an address.If the email was sent successfully, the file in the folder must be moved to a new folder called "Sent". Or the approach you will see in my code where I copy the file to the new location and then delete the old one. [code]

View 4 Replies

VS 2008 Trouble With Multidimensional Structure Based Array

May 27, 2010

I currently for the life of me can not get this to work.[code]Days(num).openTime(0) = New Date() 'Which gives the same error as openTime @ 0 has not been created as an array object (I'm assuming)Which leaves me completely lost because I've never had issues assigning initializing 1-dimensional arrays but this i just confusing the heck outta me. If anyone knows how I can initialize the 2nd part of the array (Days(num).openTime(0)) I would love to learn from you.

View 1 Replies

VS 2008 Application To Send E-mail - Trouble Making It Use Both Office 2010 And 2007?

Dec 14, 2010

I have written an application which uses the Outlook object library to send an e-mail with information from a textbox. I programmed this on Windows 7 and Office 2010, which was a mistake as most of the clients will be using Windows XP and Office 2007. I am getting an error when running the application on Windows XP/2007:

Could not load file or assembly 'Microsoft.Office.Interop.Outlook, Version=14.0.0.0 .... etc
I understand that this is because I have not loaded the Outlook 12.0 assemblies, however I am having trouble adding the assemblies on my Win7/2010 programming machine. I have downloaded the standalone Office 2007 PIAs however the Outlook 12.0 doesnt appear on the list, and when I try and add just the Office 12.0 I get an error.

is there a way to standardise and make the application work with both 2007 and 2010 outlook machines? I think it is possible, I have read some articles making the application choose the correct version, however cannot figure out how to.

View 4 Replies

.net - .Net And Multiplication Of Singles?

Nov 12, 2009

Dim result as single = 0
result = CType("8.01", Single) * 100 ' result=801.0 as expected
result = CType("8.02", Single) * 100 ' result=802.000061 --- not expected
Further to the above
result = 8.02 * 100 ' result = 802.0 as expected

View 4 Replies

Using Multiplication In If And Then Statements?

Oct 5, 2009

I am very new VB .NET and just starting If statements. My problem is: Write an If statement that determines whether the variable CurrentBalance is greater then 1000.01. If it is, multiply the variable CurrentBalance by 1.005. Otherwise, multiply CurrentBalance by 1.007.So far I have

Sub Main()
Dim currentBalance As Boolean
System.Console.WriteLine("Enter Current Balance: " & currentBalance)
If CDbl(currentBalance) > 1000.01 Then

[code].....

I really don't even know if thats how I should be starting. Not sure what to put after the first Then on how to make it multiply currentBalance by 100.5.

View 5 Replies

Make Multiplication Syntax?

Jan 29, 2010

This is part of a calculator program. I first part I sort by num and sign using a multitude of commandbuttons with no parenthesis.This program below is part of the second part. I have three more subroutines for /, +,- respectively.The + and - work correctly but * and / do not.I think it is in the line: numop(m) = g * h Is there something I am doing wrong wth the syntax in multiplication?

Public str, sign(100), numstr(100) As String
Public num1lock(100), m, n As Integer
Public ans, num(100), numop(100), g, h As Long


[code].....

View 4 Replies

Multiplication Table By Using Loops?

Mar 11, 2008

I have an assignment to make a multiplication table using loops. The idea is to make this: If the user enters 3 this is the result he gets:

0 1 2 3
1 1 2 3
2 2 4 6
3 3 6 9

if the user enters 5, this is te result:
0 1 2 3 4 5
1 1 2 3 4 5
2 2 4 6 8 10
3 3 6 9 12 15
4 4 8 12 16 20
5 5 10 15 20 25

[Code]...

View 4 Replies

While Loop On Multiplication Table?

Dec 1, 2010

how to use the while loop in multiplication??

View 2 Replies

Winforms - Multiplication Using FOR Loop?

May 13, 2012

How do I multiply inside loop using this code ?

Dim a As Integer
Dim b As Integer
a = inputBox("Enter first Number:")
b = inputBox("Enter second Number:")

and I want the answer to be shown in a label.

View 2 Replies

Losing IntWeight Variable For Multiplication?

Apr 16, 2012

I'm new to VB and programming in general and have not had too much trouble however i cannot figure this problem out and i've been working on it for a week. basically i have to create a program that calculates the mass of someone on another planet with the conversion numbers as constant, an input box for the user's mass, using select case format and output to a label including the name of planet ie "Your mass on &strPlantet is x" so what happens is my intWeight variable becomes zero and the lblResult is Zero. (i have not added the all the code for the label output) oh yeah i must also use a try/catch structure to prevent non numeric data from being input.[code]

View 20 Replies

Make A Multiplication And Sum Table Only Form 1 To 12?

Oct 29, 2010

i'm trying to make a multiplication and sum table only form 1 to 12. I get all kind of error I don't know what to do

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim numMulti, numSum, tCounter, multiSum As Integer

[Code].....

View 5 Replies

Multiplication Table In A Label Control?

Nov 1, 2009

Private Sub btnDisplay_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnDisplay.Click
Dim intCount = 1

[code].....

View 3 Replies

Multiplication Table With Repetition Structure

May 3, 2011

Here is the problem: In this question, you create an application that displays a multiplication table similar to the following figure, where x is a number entered by the user and y is the result of multiplying x by the numbers 1 through 9. Multiplication Table

[Code]....

View 2 Replies

Simple Calculator Multiplication And Division?

Jan 30, 2010

Simple Calculator multiplication and division Trying to make a simple calculator. My program inputs numbers and arithmetic operations thru commandbuttons. The numbers, num(n-+1), are odd and the operations, op(n), are even. The code is based on the even op string. Every time a op occurs it is stored in numop(n) to be accessed later. I have all the other operations in sequential order: "*"," "/, "+" and "-". The other similar For-Next loop are the same just interchange the two * for /, +and -. The "+" and "-" work fine in this configuration.

My problem is the multiplication and division does not occur. The numbers and operations line up. The numop(m)=g*h should yield numop(m)=num(1)*num(3). Is there some sort of code to be inserted to accomplish these multiplication and division operations?

[Code]...

View 7 Replies

VS 2005 Performing The Multiplication With Timespan?

Aug 20, 2009

I am trying to multiply timespan by an integer....

Private Sub wtothrs0_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles wtothrs0.MouseClick
Dim temp As TimeSpan = TimeSpan.Parse(ttothrs0.Text) + TimeSpan.Parse(wetothrs0.Text)
wtothrs0.Text = temp.ToString

[code]....

i gives the error mes "Input string was not in a correct format."

View 14 Replies

Can Retrieve Records From Database Fine / Having Trouble Updating Records

May 17, 2006

I can retrieve records from my Database fine, but I'm having trouble updating records. I am getting a syntax error on [code] I get this error when I change the Last Name (Row 0, Column 1). [code]

View 4 Replies

Arrays Multiplication Using SumProduct WorkSheet Function?

Apr 28, 2012

I would like to multiply two single dimenssion arrays, having 5 elelments in each.

I prefer to use the SumProduct WorkSheet function.

I wrote this kind of line (below) but got a run time error #1004.

X = Application.WorksheetFunction.SumProduct(Array_1, Array_2)

I would like X to be the sum of the elelment multiplication of the two arrays/

View 1 Replies

Change / Convert The Result Of The Division Or Multiplication?

Nov 15, 2011

How do I change / convert the result of the division or multiplication examples of the division = 200,1247 becomes 200,12 (2 decimal) I use this coding corrected my code is

[Code]...

View 3 Replies







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