Click here to Skip to main content
15,889,462 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Save a multiline text on sql server Pin
satc30-Jul-15 2:34
satc30-Jul-15 2:34 
GeneralRe: Save a multiline text on sql server Pin
Eddy Vluggen30-Jul-15 2:46
professionalEddy Vluggen30-Jul-15 2:46 
GeneralRe: Save a multiline text on sql server Pin
satc30-Jul-15 2:55
satc30-Jul-15 2:55 
GeneralRe: Save a multiline text on sql server Pin
Wendelius29-Jul-15 2:00
mentorWendelius29-Jul-15 2:00 
AnswerRe: Save a multiline text on sql server Pin
Mycroft Holmes29-Jul-15 14:40
professionalMycroft Holmes29-Jul-15 14:40 
Questionprogress bar, percent complete Pin
jkirkerx28-Jul-15 10:16
professionaljkirkerx28-Jul-15 10:16 
AnswerRe: progress bar, percent complete Pin
Eddy Vluggen28-Jul-15 11:42
professionalEddy Vluggen28-Jul-15 11:42 
AnswerRe: progress bar, percent complete Pin
Ross Pickard28-Jul-15 12:04
Ross Pickard28-Jul-15 12:04 
Possibly an easier way for you to achieve your result would be to set the Progressbar maximum property in your dialog to the itemIndex.Count value, that way you won't have to worry about the calculating your percentage - just set the progress bar value from i to itemCount

To do this you would need to create a new property for your dialogWait class to hold the progress bar maximum e.g.

VB
Class dialogWait

    Public WriteOnly Property progressmax() As Integer
        Set(value As Integer)
            myprogress.Maximum = value
        End Set
    End Property

(this is assuming you have a progress bar control called myprogress of course). Then you could change your main code section to this
SQL
If (itemIndex.Count > 0) Then
    dialogWait.progressmax = itemIndex.Count
End If

rC = 0
For Each i As item In itemIndexes
    rC += 1
    dialogWait.UpdateProgress(rC, "Calculating profit for " & i.ItemNumber & "  (" & rC & " of " & itemIndex.Count & ")  ")

    load_SR_Invoice_Profit(connection, i.ItemNumber, profits)
Next

AnswerRe: progress bar, percent complete Pin
jkirkerx30-Jul-15 13:27
professionaljkirkerx30-Jul-15 13:27 
QuestionListOf, check for existing value first Pin
jkirkerx28-Jul-15 9:31
professionaljkirkerx28-Jul-15 9:31 
Answer[solved] Pin
jkirkerx28-Jul-15 10:47
professionaljkirkerx28-Jul-15 10:47 
QuestionIs there any library to compare 2 sql server databases ? Pin
satc27-Jul-15 0:49
satc27-Jul-15 0:49 
AnswerRe: Is there any library to compare 2 sql server databases ? Pin
Wendelius27-Jul-15 0:58
mentorWendelius27-Jul-15 0:58 
GeneralRe: Is there any library to compare 2 sql server databases ? Pin
satc27-Jul-15 1:09
satc27-Jul-15 1:09 
GeneralRe: Is there any library to compare 2 sql server databases ? Pin
Wendelius27-Jul-15 1:47
mentorWendelius27-Jul-15 1:47 
AnswerRe: Is there any library to compare 2 sql server databases ? Pin
Chris Quinn27-Jul-15 2:12
Chris Quinn27-Jul-15 2:12 
GeneralRe: Is there any library to compare 2 sql server databases ? Pin
satc27-Jul-15 2:43
satc27-Jul-15 2:43 
GeneralRe: Is there any library to compare 2 sql server databases ? Pin
Chris Quinn27-Jul-15 3:59
Chris Quinn27-Jul-15 3:59 
GeneralRe: Is there any library to compare 2 sql server databases ? Pin
satc27-Jul-15 4:07
satc27-Jul-15 4:07 
GeneralRe: Is there any library to compare 2 sql server databases ? Pin
Sascha Lefèvre27-Jul-15 4:31
professionalSascha Lefèvre27-Jul-15 4:31 
GeneralRe: Is there any library to compare 2 sql server databases ? Pin
satc27-Jul-15 19:48
satc27-Jul-15 19:48 
QuestionCrazy ODBCDataReader Pin
Marcus Genovese24-Jul-15 4:12
Marcus Genovese24-Jul-15 4:12 
AnswerRe: Crazy ODBCDataReader Pin
Richard Deeming24-Jul-15 4:49
mveRichard Deeming24-Jul-15 4:49 
GeneralRe: Crazy ODBCDataReader Pin
Marcus Genovese24-Jul-15 5:25
Marcus Genovese24-Jul-15 5:25 
QuestionHow to write Worksheet Change Event in Visual Studio 2010??? Pin
Member 1184098123-Jul-15 21:27
Member 1184098123-Jul-15 21:27 

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.