Click here to Skip to main content
15,903,385 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionPractice Pin
Noobie One18-Jul-09 0:07
Noobie One18-Jul-09 0:07 
AnswerRe: Practice Pin
riced18-Jul-09 0:22
riced18-Jul-09 0:22 
AnswerRe: Practice Pin
Luc Pattyn18-Jul-09 0:43
sitebuilderLuc Pattyn18-Jul-09 0:43 
AnswerRe: Practice Pin
Kevin McFarlane18-Jul-09 3:50
Kevin McFarlane18-Jul-09 3:50 
AnswerRe: Practice Pin
Noobie One18-Jul-09 8:56
Noobie One18-Jul-09 8:56 
GeneralRe: Practice Pin
Luc Pattyn18-Jul-09 9:12
sitebuilderLuc Pattyn18-Jul-09 9:12 
GeneralRe: Practice Pin
Johan Hakkesteegt19-Jul-09 21:52
Johan Hakkesteegt19-Jul-09 21:52 
QuestionNested Gridview Pin
Mariam_siahpar17-Jul-09 20:02
Mariam_siahpar17-Jul-09 20:02 
Questionenable/disable network adapter Pin
ivo7517-Jul-09 7:50
ivo7517-Jul-09 7:50 
AnswerRe: enable/disable network adapter Pin
Rozis17-Jul-09 12:09
Rozis17-Jul-09 12:09 
AnswerRe: enable/disable network adapter Pin
Tom Deketelaere17-Jul-09 12:09
professionalTom Deketelaere17-Jul-09 12:09 
GeneralRe: enable/disable network adapter Pin
ivo7517-Jul-09 23:56
ivo7517-Jul-09 23:56 
QuestionNeed Conversion help Pin
User 584223717-Jul-09 5:59
User 584223717-Jul-09 5:59 
AnswerRe: Need Conversion help Pin
Christian Graus17-Jul-09 9:25
protectorChristian Graus17-Jul-09 9:25 
AnswerRe: Need Conversion help Pin
dan!sh 17-Jul-09 11:45
professional dan!sh 17-Jul-09 11:45 
AnswerRe: Need Conversion help Pin
Tom Deketelaere17-Jul-09 12:07
professionalTom Deketelaere17-Jul-09 12:07 
AnswerRe: Need Conversion help Pin
Adam R Harris17-Jul-09 13:17
Adam R Harris17-Jul-09 13:17 
GeneralRe: Need Conversion help Pin
User 584223718-Jul-09 5:09
User 584223718-Jul-09 5:09 
AnswerRe: Need Conversion help Pin
Nickolay Karnaukhov18-Jul-09 6:22
Nickolay Karnaukhov18-Jul-09 6:22 
QuestionProblem with Listview Pin
nazimghori17-Jul-09 5:08
nazimghori17-Jul-09 5:08 
AnswerRe: Problem with Listview Pin
nlarson1117-Jul-09 5:32
nlarson1117-Jul-09 5:32 
1) you have ' dim i as string ' but are using 'i' in the for next loop. change to 'as integer'

2) is your intention to add up all the selected items? if so, you aren't doing that. you are adding the same value of the first selected item for as many rows that there are total.

3) The for next loop is declared as 'to listview1.count - 1' inorder to add up all the selecteditems, you need to change that to 'to listview1.selecteditems.count - 1'.

4) where's the word 'next' at the end of the loop

Dim Tot as integer = 0

For i as integer = 0 to listview1.selecteditems.count -1
   Tot += cint(me.listview1.selecteditems(i).subitem(1).text)
Next

me.label1.text = Tot


Hope this helps...
Nathan

'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous

'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous


QuestionRe: Problem with Listview Pin
nazimghori17-Jul-09 17:41
nazimghori17-Jul-09 17:41 
QuestionImporting CSV files with embedded commas Pin
Astitva2317-Jul-09 1:04
Astitva2317-Jul-09 1:04 
AnswerRe: Importing CSV files with embedded commas Pin
riced17-Jul-09 7:26
riced17-Jul-09 7:26 
QuestionInput string was not in a correct format Pin
hsuresh16-Jul-09 23:50
hsuresh16-Jul-09 23:50 

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.