Click here to Skip to main content
15,843,322 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionVisual Studio 2008 Pin
noboat127-Mar-12 13:23
noboat127-Mar-12 13:23 
AnswerRe: Visual Studio 2008 Pin
JohnPayton27-Mar-12 18:35
JohnPayton27-Mar-12 18:35 
GeneralRe: Visual Studio 2008 Pin
noboat128-Mar-12 0:39
noboat128-Mar-12 0:39 
AnswerRe: Visual Studio 2008 Pin
Simon_Whale28-Mar-12 1:06
Simon_Whale28-Mar-12 1:06 
GeneralRe: Visual Studio 2008 Pin
noboat128-Mar-12 11:38
noboat128-Mar-12 11:38 
GeneralRe: Visual Studio 2008 Pin
Simon_Whale28-Mar-12 22:54
Simon_Whale28-Mar-12 22:54 
QuestionGet middle number between two values Pin
Brandon-X1200026-Mar-12 11:00
Brandon-X1200026-Mar-12 11:00 
AnswerRe: Get middle number between two values Pin
Simon_Whale26-Mar-12 13:00
Simon_Whale26-Mar-12 13:00 
by putting each number between 2 and 8 into a list and then using the list(of t).Average() I was able to get at the answer that you want but not sure if that is what you are after! If not then please expand your question further.

VB
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim x As New List(Of Integer)
    For i As Integer = 2 To 8
        x.Add(i)
    Next

    Dim avg As Double = x.Average()
    Messagebox.show(avg.toString())
End Sub

Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch

AnswerRe: Get middle number between two values Pin
Eddy Vluggen26-Mar-12 13:21
professionalEddy Vluggen26-Mar-12 13:21 
AnswerRe: Get middle number between two values Pin
Luc Pattyn26-Mar-12 13:24
sitebuilderLuc Pattyn26-Mar-12 13:24 
GeneralRe: Get middle number between two values Pin
Vipin_Arora26-Mar-12 20:48
Vipin_Arora26-Mar-12 20:48 
QuestionOpening Folders Pin
Jefferson Daniel24-Mar-12 12:29
Jefferson Daniel24-Mar-12 12:29 
AnswerRe: Opening Folders Pin
Abhinav S24-Mar-12 17:33
Abhinav S24-Mar-12 17:33 
GeneralRe: Opening Folders Pin
Jefferson Daniel24-Mar-12 19:06
Jefferson Daniel24-Mar-12 19:06 
AnswerRe: Opening Folders Pin
Eddy Vluggen25-Mar-12 4:23
professionalEddy Vluggen25-Mar-12 4:23 
GeneralRe: Opening Folders Pin
Jefferson Daniel25-Mar-12 6:44
Jefferson Daniel25-Mar-12 6:44 
AnswerRe: Opening Folders Pin
Luc Pattyn25-Mar-12 17:03
sitebuilderLuc Pattyn25-Mar-12 17:03 
Questionweird deployment glitch? Pin
JavaCookies23-Mar-12 6:01
JavaCookies23-Mar-12 6:01 
AnswerRe: weird deployment glitch? Pin
Eddy Vluggen23-Mar-12 7:31
professionalEddy Vluggen23-Mar-12 7:31 
AnswerRe: weird deployment glitch? Pin
Dave Kreskowiak23-Mar-12 8:11
mveDave Kreskowiak23-Mar-12 8:11 
Generaldelet data Pin
haitamhaitham21-Mar-12 6:00
haitamhaitham21-Mar-12 6:00 
AnswerRe: delet data Pin
Eddy Vluggen21-Mar-12 7:12
professionalEddy Vluggen21-Mar-12 7:12 
AnswerRe: delet data Pin
ProEnggSoft23-Mar-12 20:07
ProEnggSoft23-Mar-12 20:07 
AnswerRe: delet data Pin
Abhinav S24-Mar-12 1:33
Abhinav S24-Mar-12 1:33 
Questiondownload from dynamic url Pin
bapay20-Mar-12 12:18
bapay20-Mar-12 12:18 

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.