Click here to Skip to main content
15,921,279 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Problems Calling A Function Pin
Caio Kinzel Filho16-Oct-08 9:15
Caio Kinzel Filho16-Oct-08 9:15 
GeneralRe: Problems Calling A Function Pin
Caio Kinzel Filho16-Oct-08 9:17
Caio Kinzel Filho16-Oct-08 9:17 
GeneralRe: Problems Calling A Function Pin
Phantom71516-Oct-08 9:37
Phantom71516-Oct-08 9:37 
GeneralRe: Problems Calling A Function Pin
Caio Kinzel Filho17-Oct-08 6:55
Caio Kinzel Filho17-Oct-08 6:55 
QuestionThreading Problem in VB.NET Pin
Jim Buckley Barrett16-Oct-08 5:56
Jim Buckley Barrett16-Oct-08 5:56 
QuestionRe: Threading Problem in VB.NET Pin
Jim Buckley Barrett16-Oct-08 6:21
Jim Buckley Barrett16-Oct-08 6:21 
AnswerRe: Threading Problem in VB.NET Pin
Steven J Jowett16-Oct-08 6:29
Steven J Jowett16-Oct-08 6:29 
QuestionRe: Threading Problem in VB.NET Pin
Jim Buckley Barrett16-Oct-08 6:51
Jim Buckley Barrett16-Oct-08 6:51 
Sorry to be a pain here but that doesn't make sense to me.

First should it be Public Delegate Sub myDelegate() or Public Delegate Function myDelegate()? Public Delegate myDelegate() is giving me an error. I'm presuming it should be a SUB.

This is what I have for my thread

reportThread = New Thread(AddressOf ProcessReport)
With reportThread
    .Priority = ThreadPriority.AboveNormal
    .IsBackground = True
    .Start()
End With


Inside the Sub ProcessReport I have

With frmDiscoveryII
    Select Case True
        Case .rbReportJourneySummary.Checked
             ...
        Case .rbReportIdle.Checked
             ...


Its giving me the error at the WITH part.

As you can see I'm accessing a lot of the controls on the main form.

So where would INVOKE apply here?

Would I have to give my thread addressof a different sub to call, reportThread = New Thread(AddressOf WHATEVER) and within that set the INVOKE as following

Sub WHATEVER
frmDiscoveryII.rbReportJourneySummary.Invoke(New myDelegate(AddressOf ProcessReport), New Object() {})
frmDiscoveryII.rbReportIdle.Invoke(New myDelegate(AddressOf ProcessReport), New Object() {})
ProcessReport
END SUB


Thanks.

Regards,
jim

AnswerRe: Threading Problem in VB.NET Pin
Dave Kreskowiak16-Oct-08 6:55
mveDave Kreskowiak16-Oct-08 6:55 
GeneralRe: Threading Problem in VB.NET Pin
Jim Buckley Barrett16-Oct-08 7:00
Jim Buckley Barrett16-Oct-08 7:00 
GeneralRe: Threading Problem in VB.NET Pin
Dave Kreskowiak16-Oct-08 7:13
mveDave Kreskowiak16-Oct-08 7:13 
GeneralRe: Threading Problem in VB.NET Pin
Paul Conrad16-Oct-08 7:46
professionalPaul Conrad16-Oct-08 7:46 
QuestionOpration has timed out... Pin
rohitkpurohit16-Oct-08 4:15
rohitkpurohit16-Oct-08 4:15 
AnswerRe: Opration has timed out... Pin
Dave Kreskowiak16-Oct-08 6:49
mveDave Kreskowiak16-Oct-08 6:49 
QuestionClosing an application after it was opened with System.Diagnostics.Process.Start Pin
farmer16-Oct-08 2:58
farmer16-Oct-08 2:58 
AnswerRe: Closing an application after it was opened with System.Diagnostics.Process.Start Pin
d_camillo16-Oct-08 3:13
d_camillo16-Oct-08 3:13 
GeneralRe: Closing an application after it was opened with System.Diagnostics.Process.Start Pin
farmer16-Oct-08 4:52
farmer16-Oct-08 4:52 
GeneralRe: Closing an application after it was opened with System.Diagnostics.Process.Start Pin
Dave Kreskowiak16-Oct-08 6:41
mveDave Kreskowiak16-Oct-08 6:41 
GeneralRe: Closing an application after it was opened with System.Diagnostics.Process.Start Pin
Alan N16-Oct-08 6:45
Alan N16-Oct-08 6:45 
AnswerRe: Closing an application after it was opened with System.Diagnostics.Process.Start Pin
Jon_Boy16-Oct-08 6:59
Jon_Boy16-Oct-08 6:59 
QuestionInsufficient memory to continue the execution of the program Pin
jhyn16-Oct-08 0:16
jhyn16-Oct-08 0:16 
AnswerRe: Insufficient memory to continue the execution of the program Pin
Steven J Jowett16-Oct-08 1:26
Steven J Jowett16-Oct-08 1:26 
AnswerRe: Insufficient memory to continue the execution of the program Pin
rohitkpurohit16-Oct-08 4:21
rohitkpurohit16-Oct-08 4:21 
QuestionMaking a colored string Pin
Ballita15-Oct-08 23:30
Ballita15-Oct-08 23:30 
AnswerRe: Making a colored string Pin
Gagan.2015-Oct-08 23:51
Gagan.2015-Oct-08 23:51 

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.