Click here to Skip to main content
15,915,864 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Date string conversion problem Pin
Luc Pattyn20-May-10 2:01
sitebuilderLuc Pattyn20-May-10 2:01 
AnswerRe: Date string conversion problem Pin
TheComputerMan20-May-10 2:13
TheComputerMan20-May-10 2:13 
GeneralRe: Date string conversion problem Pin
Luc Pattyn20-May-10 2:24
sitebuilderLuc Pattyn20-May-10 2:24 
GeneralRe: Date string conversion problem Pin
TheComputerMan20-May-10 2:32
TheComputerMan20-May-10 2:32 
AnswerRe: Date string conversion problem Pin
George B Gilbert23-May-10 22:43
George B Gilbert23-May-10 22:43 
Questionvb.net mscomm problem Pin
tuolesi19-May-10 15:40
tuolesi19-May-10 15:40 
AnswerRe: vb.net mscomm problem Pin
Luc Pattyn19-May-10 16:25
sitebuilderLuc Pattyn19-May-10 16:25 
QuestionSubstring Function on Me.Invoke??? Pin
Dominick Marciano19-May-10 15:31
professionalDominick Marciano19-May-10 15:31 
I am sort of new to multithreadings (doing it about 9 months now) and I ran into an unusual error that I can't figure out. First, how the code is set up:

I have my delegate Delegate Sub RecommendReportsDoneDelegate()

Before I start the calling of the new thread:

DetermineRecommendations = New clsReportRecommendations

AddHandler DetermineRecommendations.StatusChange, AddressOf StatusChange
AddHandler DetermineRecommendations.RecommendationsDone, AddressOf RecommendationsDone

DetermineRecommendations.Start(DataFolder)


The "Start" method actually creates the new thread in the DetermineRecommendations class. Finally, the sub that handles the RecommendationsDone event is:

Private Sub RecommendationsDone()
        Try
            If Me.InvokeRequired Then
                Me.Invoke(New RecommendReportsDoneDelegate(AddressOf RecommendationsDone))
            Else
                Me.Enabled = True
                CopyData()
                SetUpUnitSheet()
                ShowRecommendations()
                SetUpSamplingSheet()
                DetermineReportType()
                Status.Text = "Finished"
            End If
        Catch ex As Exception
        End Try


However, on the Me.Invoke I get the following error:

Index and length must refer to a location within the string. Parameter name: length

The error occurs in mscorlib. Any ideas on why there seems to be some string function occurring with the Me.Invoke? By the way, the
AnswerRe: Substring Function on Me.Invoke??? Pin
Luc Pattyn19-May-10 16:43
sitebuilderLuc Pattyn19-May-10 16:43 
QuestionSuggestions for passing arrays of data between executables in VB.net Pin
Troy Edson-Smith19-May-10 12:45
Troy Edson-Smith19-May-10 12:45 
AnswerRe: Suggestions for passing arrays of data between executables in VB.net Pin
Luc Pattyn19-May-10 13:02
sitebuilderLuc Pattyn19-May-10 13:02 
GeneralRe: Suggestions for passing arrays of data between executables in VB.net Pin
Troy Edson-Smith19-May-10 13:29
Troy Edson-Smith19-May-10 13:29 
GeneralRe: Suggestions for passing arrays of data between executables in VB.net Pin
Luc Pattyn19-May-10 14:00
sitebuilderLuc Pattyn19-May-10 14:00 
GeneralRe: Suggestions for passing arrays of data between executables in VB.net Pin
Troy Edson-Smith19-May-10 14:43
Troy Edson-Smith19-May-10 14:43 
QuestionLimit textbox.text to positiive and negative integers Pin
Johan Hakkesteegt19-May-10 1:02
Johan Hakkesteegt19-May-10 1:02 
AnswerRe: Limit textbox.text to positiive and negative integers Pin
DaveAuld19-May-10 1:37
professionalDaveAuld19-May-10 1:37 
GeneralRe: Limit textbox.text to positiive and negative integers Pin
Johan Hakkesteegt19-May-10 1:46
Johan Hakkesteegt19-May-10 1:46 
GeneralRe: Limit textbox.text to positiive and negative integers Pin
Henry Minute19-May-10 2:09
Henry Minute19-May-10 2:09 
GeneralRe: Limit textbox.text to positiive and negative integers Pin
Johan Hakkesteegt19-May-10 2:17
Johan Hakkesteegt19-May-10 2:17 
GeneralRe: Limit textbox.text to positiive and negative integers Pin
Luc Pattyn19-May-10 2:14
sitebuilderLuc Pattyn19-May-10 2:14 
GeneralRe: Limit textbox.text to positiive and negative integers Pin
Johan Hakkesteegt19-May-10 2:41
Johan Hakkesteegt19-May-10 2:41 
GeneralRe: Limit textbox.text to positiive and negative integers Pin
Luc Pattyn19-May-10 2:50
sitebuilderLuc Pattyn19-May-10 2:50 
GeneralRe: Limit textbox.text to positiive and negative integers Pin
DaveAuld19-May-10 3:14
professionalDaveAuld19-May-10 3:14 
GeneralRe: Limit textbox.text to positiive and negative integers Pin
The Man from U.N.C.L.E.19-May-10 3:23
The Man from U.N.C.L.E.19-May-10 3:23 
GeneralRe: Limit textbox.text to positiive and negative integers Pin
Johan Hakkesteegt19-May-10 3:32
Johan Hakkesteegt19-May-10 3:32 

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.