Click here to Skip to main content
15,899,935 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: PathTooLongException and Solutions? Pin
Eddy Vluggen5-May-13 10:04
professionalEddy Vluggen5-May-13 10:04 
QuestionHow do i save all opened windows Pin
Member 46241693-May-13 3:16
Member 46241693-May-13 3:16 
AnswerRe: How do i save all opened windows Pin
GuyThiebaut3-May-13 4:23
professionalGuyThiebaut3-May-13 4:23 
QuestionHow do i save all opened windows Pin
Member 46241693-May-13 2:56
Member 46241693-May-13 2:56 
QuestionTry Catch does not Execute Catch code Pin
treddie2-May-13 18:31
treddie2-May-13 18:31 
AnswerRe: Try Catch does not Execute Catch code Pin
Richard MacCutchan2-May-13 21:41
mveRichard MacCutchan2-May-13 21:41 
GeneralRe: Try Catch does not Execute Catch code Pin
treddie2-May-13 22:02
treddie2-May-13 22:02 
QuestionMethod signature does not match delegate - thread safe Pin
Member 100187622-May-13 7:12
Member 100187622-May-13 7:12 
I am very new to programming... I have opened a vb2003 application in visual studio 2010 and have had some thread safe problems when trying to modify a text box from a non-parent form. I implemented the below that I found on a thread with good results:
VB
Private Sub SetLabelText(ByVal s As String)

    If Me.lbTime.InvokeRequired Then
        Me.lbTime.Invoke(New Action(Of String)(AddressOf SetLabelText), s)
        'Me.lbTime.Invoke(New Action(Of String)(AddressOf SetLabelText), s)
    Else
        Me.lbTime.Text = s
    End If
End Sub



Now when I try to modify the attached for an array of textboxes, while passing the array index into the sub routine I get a "Does not have a signature compatible with the delegate." error. Is it possible to have a delegate with multuple parameters? Is there an easier way to accomplish a threadsafe multiple textbox modifications?

VB
Private Sub SettxtChannelData(ByVal arrIndex As Integer, ByVal s As String)
    If Me.txtChannelData(arrIndex).InvokeRequired Then
        Me.txtChannelData(arrIndex).Invoke(New Action(Of String)(AddressOf SettxtChannelData), s)
    Else
        Me.txtChannelData(arrIndex).Text = s
    End If
End Sub

AnswerRe: Method signature does not match delegate - thread safe Pin
Richard Deeming2-May-13 8:21
mveRichard Deeming2-May-13 8:21 
GeneralRe: Method signature does not match delegate - thread safe Pin
Member 100187622-May-13 11:00
Member 100187622-May-13 11:00 
GeneralRe: Method signature does not match delegate - thread safe Pin
Alan N2-May-13 12:26
Alan N2-May-13 12:26 
QuestionTrouble passing arguments to System.Diagnostics.Process.Start Pin
savedlema2-May-13 0:07
savedlema2-May-13 0:07 
AnswerRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
Richard MacCutchan2-May-13 1:07
mveRichard MacCutchan2-May-13 1:07 
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
Richard Deeming2-May-13 1:23
mveRichard Deeming2-May-13 1:23 
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
Richard MacCutchan2-May-13 1:27
mveRichard MacCutchan2-May-13 1:27 
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
savedlema2-May-13 8:06
savedlema2-May-13 8:06 
AnswerRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
Eddy Vluggen2-May-13 5:07
professionalEddy Vluggen2-May-13 5:07 
AnswerRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
Alan N2-May-13 5:44
Alan N2-May-13 5:44 
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
savedlema2-May-13 8:01
savedlema2-May-13 8:01 
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
Alan N2-May-13 8:17
Alan N2-May-13 8:17 
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
savedlema3-May-13 0:54
savedlema3-May-13 0:54 
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
Alan N3-May-13 2:57
Alan N3-May-13 2:57 
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
savedlema3-May-13 4:24
savedlema3-May-13 4:24 
QuestionWord VBA: quickly checking if table is uniform from 3rd row on Pin
Bart Van Eyndhoven1-May-13 23:08
Bart Van Eyndhoven1-May-13 23:08 
AnswerRe: Word VBA: quickly checking if table is uniform from 3rd row on Pin
Kenneth Haugland2-May-13 2:28
mvaKenneth Haugland2-May-13 2:28 

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.