Make A Program That Will Calculate The Height Of A Falling Ball?

Nov 4, 2009

I am trying to make a program that will calculate the height of a falling ball for every .25 seconds starting at 0 and going till the height = 0 or until 10 items have been listed. I have started the code, but it just isnt working out!

Dim h, time as double
Dim aftert as integer
Do While h>0

[Code]....

I get an "expression needed" error from the &time& and nothing is displayed in the list box. Not to mention, I have no idea what to put in the loop or how to limit the list to 10 items or until the ball hits 0.

View 4 Replies


ADVERTISEMENT

Calculate The Width Of A Circle At Top + 1/3 Height And Top + 2/3 Height?

Mar 30, 2012

how can i calculate the width of a circle at top + 1/3 height & top + 2/3 height?

View 5 Replies

Text Boxes And Formulas - Calculate The Velocity Of A Ball Thrown In The Air

Mar 20, 2011

how to create this certain program. In short, I must calculate the velocity of a ball thrown in the air after 1, 2, and 3 seconds. The formula for this is: -16t^2 +velocity(t)+height. the height for the ball is 5 feet per-second. So after defining each textbox of 1 sec, 2 sec, and 3 secs (Dim stuff) I need the button click to run through the formula then display the result for each second. How would I do this?

View 6 Replies

Forms :: How To Make Rocket Falling From Top Of Panel

May 6, 2009

I am working on a small game, Moon Lander and I figured how to make rocket falling from the top of the panel which is on the form. I want to have fuel burning feature so I can land rocket properly on the bottom of the panel.[code]If anyone knows how to burn fuel (minus the gravity) so rocket starts to slow down, and eventually stop, then rise up,

View 2 Replies

ListBox PreferredHeight - Make ListBox Calculate Correct Integral Height Before ListBox Is Made Visible

Nov 19, 2009

If I set a ListBox.Height = ListBox.PreferredHeight when the control is hidden and IntegralHeight = True, then set it visible:

a) Actual Height reduces by typically 3-5 pixels after redraw (but not 1 pixel per item).

b) PreferredHeight does not not appear to give the correct integral of item heights.

Is there a way to make ListBox calculate the correct integral Height before the ListBox is made visible, so it can be correctly pre-positioned from bottom edge?

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

ListBox1.Visible = False
ListBox1.IntegralHeight = True

[CODE]...

View 4 Replies

New Years Ball Drop - Timer To Count Down From 30 And Reach 0 When The Ball Is At The End Of The Pole?

Apr 5, 2011

I have a this program I have to write but I have no clue where to even start.New Years Ball Drop?Design a program that replicates the Times Square New Year�s Eve ball drop. You can use a picture from the Internet of the ball you wish to use.Functionality Requirements:

-The ball will take exactly 30 seconds to move down the pole

-Need a timer to count down from 30 and reach 0 when the ball is at the end of the pole

-The timer will randomly change colour every few seconds

- When the ball has finished descending, the text �Happy New Year!� will display on the screen

-Need a button on the form that, when clicked, stops the ball drop and timer (so screenshots can be taken). When the button is clicked again, the timer and ball drop should resume from where it left off.

View 1 Replies

Asp.net - Calculate Height Of A Website?

Nov 14, 2009

I want to take a snapshot of a website so i have to calculate height of a website. I want to use this value in:

Dim MyBrowser As New WebBrowser
MyBrowser.Size = New Size(1027, ???)

View 2 Replies

Calculate A Strings Height?

Aug 4, 2011

I have a long string of text which i am appending to PDF document.

But im having problems trying to find out exactly how many "lines" the text will produce.

I currently have the PDF,s width to work with , But im wondering if anyone would know how i can use this to calculate how many "lines" a long string would need?[code]....

View 6 Replies

Calculate The Height Of The Grid?

Jan 8, 2011

I have to Panels on a Form. The "upper" Panel is set to Dock = Fill the second "down" Panel is set to Dock = Bottom

Ok. - During the application I add some usercontrols in to the "down" Panel.

Now in one of the usercontrols, I have two group boxes (also set to Fill & Bottom) In the upper groupbox (Dockstyle = Fill) There is a Grid and below the grid, I have two RadioButtons.

On my developer machine, I can see the Grid and the Radiobuttons. On an other machine (other resolution, and other Display), I have the problem that, the RadioButtons are not visible anymore. - The user has to change the height of the "down" Panel by hand, so he can see the RadioButtons.

What I try to do now (and I don't get it working) is: Set the minimum heigt of the "down" Panel so, that both Groupboxes are visible and what is more important: that the commands are all visible.

calculate the height of the grid and the Radiobuttons depending of the solution and used display!?

View 3 Replies

Calculate Ideal Weight For Height?

Aug 25, 2009

How can we calculate ideal weight for a given height in vb 2005. If weight is given in Kg and height is given in inches..

View 3 Replies

VS 2010 Calculate Width And Height Of The Puzzle

Feb 21, 2012

I am creating a puzzle game and would like to calculate the width and height of the puzzle taking into account the original image size and the screen resolution. My screen height is 768 and width is 1366. An example image is 1200 x 1600 and the jigsaw size that works well with this image is 480 (height) x 640 (width). I would like to create an algorithm that calculates the jigsaw size for any image bearing in mind that the screen resolution will change as will the size of the image.

View 2 Replies

Make A VB Program To Calculate Retirement Calculater?

Mar 21, 2012

Actually i don't know how to mentions the years of work into the program and i don't know how to calculate the final result. I took a long time try to solve my problem but i can't.this assignment due tomorrow morning.

Public Class Form1
Private Sub btnClack_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClack.Click

[code].....

View 5 Replies

Make Program To Calculate The Result Of Brackets?

Feb 18, 2011

if you want to make program to calculate the result of brackets math question , as 6+(9+(5-(1+(2+1)))) , and you made 2 buttons representing ")" and "(" , and you want when the user clicks on the "(" button it just applies that the number before it to be stored in a place like a label such that the program calculates numbers after it and then calculate the produced number and the label number , something will disallow you that the questions with many brackets as the mentioned one above 6+(9+(5-(1+(2+1)))) will for example store 6 and plus sign in a label but after that 6 will be placed by 9 because there is another bracket after 9 , so the question will be calculated false , more clarification for my question is the way brackets are made in the windows calculator so i want a coding idea to make the brackets like in the windows calculator

View 5 Replies

Make The Ball Move Faster?

Apr 26, 2011

how to change the balls speed

View 2 Replies

ASP.Net VB Javascript Function: Calculate Height Of Content Passed To IFrame

Jan 26, 2012

I'm trying to convert an old ASP.Net 1.0 application to ASP.Net 3.5 and am running into trouble with a JavaScript function. The application passes in content into an within a table cell. The function is supposed to calculate the height of the content and size the table cell appropriately.

way of accomplishing this with the

JavaScript function

<script language="javascript" type="text/javascript">
<!--
function calcHeight() {

[Code].....

View 1 Replies

Make A Bouncing Ball - Built Their Codes?

Dec 30, 2009

I am now trying to make a bouncing ball in vb 2008, ofc i looked at some guides first to see how they built their codes

Public Class Form1
Dim m_Dx As Integer
Dim m_Dy As Integer[code]....

As you see there are many variables

View 4 Replies

VS 2005 : Make The Ball Bounce Around The Desktop?

Sep 3, 2009

Ive been experimenting with physics of objects in visual basic and what (a boucing ball) and Ive been wanting to take it the step further, make the ball bounce around the desktop. but how.

View 5 Replies

Creating A Program For Which Will Calculate The Time Taken For A User To Make A Number Keystrokes?

Feb 18, 2012

I am creating a program for which will calculate the time taken for a user to make a number keystrokes. I want to start the timer running from the beginning of the first key stroke and end on the final keystroke. Each keystroke has been linked to a label which will change colour according to whether the key has been pressed. When the keystrokes have been finished I want to save this timespan in a field in a database. To test that the timer is running I have made a messagebox which will show the time taken however it is constantly showing zero and the label for the final keystroke is remaining in the keydown colour.

Public Class Form1
Dim dteStart, dteFinish As Date
Dim span As TimeSpan

[code]....

View 19 Replies

Make A Program Calculate The Number Of Comparisons An Insertion Sort Makes?

Jul 15, 2009

I got a list of 16 items and I have sorted them and I want to show the number of comparisons the program had to make using the insertion sort?(in a textbox for example)I mean is there a formula?

View 10 Replies

Make Program To Calculate Textbox1.text And Show The Answer In Textbox2

Dec 22, 2011

I am working on bit more advanced calculator, but I cant figure out how I can make my program to calculate textbox1.text and show the answer in textbox2

For example: (textbox1) 5*62+4
(textbox2)314

I'm not sure this question belong in this topic, but I don't know where else it should be?

View 16 Replies

Make A Program That Will Calculate The Area Of A Rectangle Based On The Length And Width Given By The User

Nov 20, 2009

im trying to make a a rogram that will calculate the area of a rectangle based on the lenght and

width given by the user

[code...]

View 4 Replies

Make Loop In Program And Calculate Time Taken To Complete Loop?

Nov 23, 2011

I am constructing a program, i am new to Visual Basic, but i have past programming experience. I was wondering if anyone knew how to form a loop that could...lets say calculate the answer when two numbers are added together,and it would repeat this thousands of times, etc. And if there is a way, would it be possible to calculate the time taken to complete this loop.

View 5 Replies

Make A Program That Will Calculate Sum Of Consecutive Numbers Between Two Given Numbers

Jun 4, 2012

I'm trying to make a program that will calculate the sum of consecutive numbers between two given numbers. [code]

View 13 Replies

Set Row Height For Datagrid View In Program?

Mar 28, 2010

How do you set the row height for the datagrid view in VB?

DataGridView1.RowTemplate.Height = 12 doesn't work

View 5 Replies

C# - Set The Height Of A Button To {Binding ElementName=MW,Path=Height}/2?

Jan 7, 2012

Is is possible to do basic mathematical operations like addition, division etc. in XAML?For example, I want to set the height of a button to {Binding ElementName=MW,Path=Height}/2.

View 4 Replies

Make Pdf File Size With Respect To Div Height And Width Using Wkhtmltopdf.exe

Dec 24, 2011

I tried to make pdf with wkhtmltopdf.exe by supplying html string and is working properly.But i want to provide pdf custom size to exe.

eg:- Suppose i have a div of height 30 and width 50. then the generated pdf should be of same size.

Below is the code which i found from this website forum

Private Sub WritePDF(ByVal HTML As String)
Dim inFileName As String, outFileName As String, tempPath As String
Dim p As Process

[Code]....

View 1 Replies

VS 2005 Cross Cursor And Make It The Width And Height Of The Form

Oct 6, 2009

I am trying to use a cross cursor and make it the width and height of the form without any luck. I read in a thread i may have to use a custom cursor, is this true? I have tried to re size the Cursors.Cross

[Code]...

View 8 Replies

Create A Program That Displays The Height Of 3 Different People Via A Scrollbar?

Oct 31, 2010

I have been asked to create a program that displays the height of 3 diffrent people via a scrollbar. The problem i'm having is i don't know the code for getting the total from the scrollbar to display on the height labels .The labels are named lblheight1 lblheight2 lblheight3 Scrollbar is named vscheighttotal?

View 5 Replies

VS 2005 - Allow A User To Change The Height Of The Treeview Which Will Automatically Change The Height Of The Textbox?

Apr 9, 2009

I have a treeview and text box below it... is it easy or even possible to allow a user to change the height of the treeview which will automatically change the height of the textbox so there is no gap between them?ie one gets bigger the other gets smaller etc etc

View 1 Replies

Make Application That Will Calculate All?

May 7, 2012

I am trying to make application that will calculate all that is nessesary for it and show to user a results for x1 and x2. And now I am stucked somewhere:

vb.net
Dim a As Integer = TextBox2.Text
Dim b As Integer = TextBox3.Text

[Code]....

Ok, an explanation for variables: TextBox2 is parameter a (user enter), textbox3 is paramenter b (user enter), textbox4 is c parameter (user enter). I manage to solve result for D , as you know D is all under sqrt root . Now I wanted to solve x1, and there is some error. Where is the problem?

Sry, I found error: TextBox5.Text = "D = " & D & vbNewLine & "x1" = x1 (I didnt add = into quotation marks and it was like i say something = something = something which cant be done XD

View 1 Replies







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