Click here to Skip to main content
15,884,099 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionVisual Studio 2008 Pin
noboat127-Mar-12 12:23
noboat127-Mar-12 12:23 
AnswerRe: Visual Studio 2008 Pin
JohnPayton27-Mar-12 17:35
JohnPayton27-Mar-12 17:35 
GeneralRe: Visual Studio 2008 Pin
noboat127-Mar-12 23:39
noboat127-Mar-12 23:39 
AnswerRe: Visual Studio 2008 Pin
Simon_Whale28-Mar-12 0:06
Simon_Whale28-Mar-12 0:06 
GeneralRe: Visual Studio 2008 Pin
noboat128-Mar-12 10:38
noboat128-Mar-12 10:38 
GeneralRe: Visual Studio 2008 Pin
Simon_Whale28-Mar-12 21:54
Simon_Whale28-Mar-12 21:54 
QuestionGet middle number between two values Pin
Brandon-X1200026-Mar-12 10:00
Brandon-X1200026-Mar-12 10:00 
AnswerRe: Get middle number between two values Pin
Simon_Whale26-Mar-12 12:00
Simon_Whale26-Mar-12 12: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 12:21
professionalEddy Vluggen26-Mar-12 12:21 
AnswerRe: Get middle number between two values Pin
Luc Pattyn26-Mar-12 12:24
sitebuilderLuc Pattyn26-Mar-12 12:24 
GeneralRe: Get middle number between two values Pin
Vipin_Arora26-Mar-12 19:48
Vipin_Arora26-Mar-12 19:48 
QuestionOpening Folders Pin
Jefferson Daniel24-Mar-12 11:29
Jefferson Daniel24-Mar-12 11:29 
AnswerRe: Opening Folders Pin
Abhinav S24-Mar-12 16:33
Abhinav S24-Mar-12 16:33 
GeneralRe: Opening Folders Pin
Jefferson Daniel24-Mar-12 18:06
Jefferson Daniel24-Mar-12 18:06 
AnswerRe: Opening Folders Pin
Eddy Vluggen25-Mar-12 3:23
professionalEddy Vluggen25-Mar-12 3:23 
GeneralRe: Opening Folders Pin
Jefferson Daniel25-Mar-12 5:44
Jefferson Daniel25-Mar-12 5:44 
AnswerRe: Opening Folders Pin
Luc Pattyn25-Mar-12 16:03
sitebuilderLuc Pattyn25-Mar-12 16:03 
Questionweird deployment glitch? Pin
JavaCookies23-Mar-12 5:01
JavaCookies23-Mar-12 5:01 
AnswerRe: weird deployment glitch? Pin
Eddy Vluggen23-Mar-12 6:31
professionalEddy Vluggen23-Mar-12 6:31 
AnswerRe: weird deployment glitch? Pin
Dave Kreskowiak23-Mar-12 7:11
mveDave Kreskowiak23-Mar-12 7:11 
Generaldelet data Pin
haitamhaitham21-Mar-12 5:00
haitamhaitham21-Mar-12 5:00 
AnswerRe: delet data Pin
Eddy Vluggen21-Mar-12 6:12
professionalEddy Vluggen21-Mar-12 6:12 
AnswerRe: delet data Pin
ProEnggSoft23-Mar-12 19:07
ProEnggSoft23-Mar-12 19:07 
AnswerRe: delet data Pin
Abhinav S24-Mar-12 0:33
Abhinav S24-Mar-12 0:33 
Questiondownload from dynamic url Pin
bapay20-Mar-12 11:18
bapay20-Mar-12 11: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.