Click here to Skip to main content
15,881,248 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
AnswerRe: Input string was not in a correct format Pin
Luc Pattyn17-Jul-09 0:51
sitebuilderLuc Pattyn17-Jul-09 0:51 
QuestionSerialization and deserialization - can't view records in a datagrid nor save in a dataset Pin
BluesEnd16-Jul-09 17:50
BluesEnd16-Jul-09 17:50 
GeneralVB2008 express, Expression Error Pin
A Wyatt16-Jul-09 11:44
A Wyatt16-Jul-09 11:44 
GeneralRe: VB2008 express, Expression Error Pin
Christian Graus16-Jul-09 14:48
protectorChristian Graus16-Jul-09 14:48 
GeneralRe: VB2008 express, Expression Error Pin
Paul Conrad18-Jul-09 19:55
professionalPaul Conrad18-Jul-09 19:55 
GeneralRe: VB2008 express, Expression Error Pin
Dave Kreskowiak16-Jul-09 15:52
mveDave Kreskowiak16-Jul-09 15:52 
GeneralRe: VB2008 express, Expression Error Pin
Luc Pattyn16-Jul-09 15:55
sitebuilderLuc Pattyn16-Jul-09 15:55 
GeneralRe: VB2008 express, Expression Error Pin
Dave Kreskowiak16-Jul-09 16:00
mveDave Kreskowiak16-Jul-09 16:00 
GeneralRe: VB2008 express, Expression Error Pin
Luc Pattyn16-Jul-09 16:11
sitebuilderLuc Pattyn16-Jul-09 16:11 
GeneralRe: VB2008 express, Expression Error Pin
A Wyatt18-Jul-09 4:11
A Wyatt18-Jul-09 4:11 
QuestionExtract/get big image (256*256, 48*48) from directory/file Pin
User 584223716-Jul-09 5:02
User 584223716-Jul-09 5:02 
AnswerRe: Extract/get big image (256*256, 48*48) from directory/file Pin
Steven J Jowett16-Jul-09 9:30
Steven J Jowett16-Jul-09 9:30 
GeneralRe: Extract/get big image (256*256, 48*48) from directory/file Pin
User 584223716-Jul-09 9:50
User 584223716-Jul-09 9: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.