Click here to Skip to main content
16,006,341 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralData Grid ColumnStyle Pin
Ahmed S Shanab19-Apr-05 20:28
Ahmed S Shanab19-Apr-05 20:28 
GeneralRe: Data Grid ColumnStyle Pin
Mohamed Ishak20-Apr-05 0:34
professionalMohamed Ishak20-Apr-05 0:34 
GeneralCreating Windows Service Pin
Mahesh167919-Apr-05 17:22
Mahesh167919-Apr-05 17:22 
GeneralRe: Creating Windows Service Pin
Ray Cassick20-Apr-05 10:51
Ray Cassick20-Apr-05 10:51 
Generalclassroom project Pin
clear2719-Apr-05 17:09
clear2719-Apr-05 17:09 
GeneralRe: classroom project Pin
Christian Graus19-Apr-05 17:41
protectorChristian Graus19-Apr-05 17:41 
GeneralRe: classroom project Pin
clear2719-Apr-05 17:46
clear2719-Apr-05 17:46 
GeneralRe: classroom project Pin
clear2719-Apr-05 18:41
clear2719-Apr-05 18:41 
This is what I ahve so far.

Private Sub btnDisplay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDisplay.Click
Dim h As Double 'h is height
Dim v As Double 'v is velocity
Dim t As Double 't is time
Dim ballHt As Double
h = CDbl(txtIniHeight.Text)
v = CDbl(txtIniVelocity.Text)
t = 0
CalcBallHt(h, v, t, ballHt)
lstResults.Items.Clear()
lstResults.Items.Add(ballHt)



End Sub
Function CalcBallHt(ByRef h As Double, ByRef v As Double, _
ByRef t As Double, ByRef ballHt As Double) As Double
ballHt = h + v * t - 16 * t * t
Return ballHt


End Function



I am having a problem getting the function to work
I am sure it has something to do with the variable time but i'm not sure how to resolve this.
Please Help

Thanks
GeneralRe: classroom project Pin
Mohamed Ishak20-Apr-05 2:08
professionalMohamed Ishak20-Apr-05 2:08 
GeneralRe: classroom project Pin
Vikash Ranjan20-Apr-05 23:33
Vikash Ranjan20-Apr-05 23:33 
GeneralVB.NEt/win32 waveinopen Pin
ebred19-Apr-05 12:49
ebred19-Apr-05 12:49 
GeneralRe: VB.NEt/win32 waveinopen Pin
Anonymous19-Apr-05 13:22
Anonymous19-Apr-05 13:22 
GeneralSorry, the tags were on Pin
Anonymous19-Apr-05 13:24
Anonymous19-Apr-05 13:24 
GeneralRe: Sorry, the tags were on Pin
ebred19-Apr-05 13:41
ebred19-Apr-05 13:41 
GeneralRe: Sorry, the tags were on Pin
Anonymous19-Apr-05 13:55
Anonymous19-Apr-05 13:55 
GeneralRe: Sorry, the tags were on Pin
ebred19-Apr-05 14:00
ebred19-Apr-05 14:00 
GeneralRe: Sorry, the tags were on Pin
Anonymous19-Apr-05 14:43
Anonymous19-Apr-05 14:43 
GeneralRe: Sorry, the tags were on Pin
ebred19-Apr-05 15:09
ebred19-Apr-05 15:09 
GeneralRe: Sorry, the tags were on Pin
ebred19-Apr-05 14:32
ebred19-Apr-05 14:32 
GeneralRe: Sorry, the tags were on Pin
Anonymous19-Apr-05 15:44
Anonymous19-Apr-05 15:44 
GeneralRe: VB.NEt/win32 waveinopen Pin
Anonymous19-Apr-05 17:00
Anonymous19-Apr-05 17:00 
GeneralRe: VB.NEt/win32 waveinopen Pin
ebred20-Apr-05 12:17
ebred20-Apr-05 12:17 
GeneralRe: VB.NEt/win32 waveinopen Pin
Anonymous20-Apr-05 16:13
Anonymous20-Apr-05 16:13 
GeneralBinding Pin
Jaydeanster19-Apr-05 10:48
Jaydeanster19-Apr-05 10:48 
GeneralWinXP strange character conversion Pin
John Shaw19-Apr-05 9:55
John Shaw19-Apr-05 9:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.