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

Visual Basic

 
Questionadding control's with out refreshing the page in asp.net Pin
mvkrishnas23-Dec-07 16:58
mvkrishnas23-Dec-07 16:58 
GeneralRe: adding control's with out refreshing the page in asp.net Pin
Michael Sync23-Dec-07 21:20
Michael Sync23-Dec-07 21:20 
GeneralRe: adding control's with out refreshing the page in asp.net Pin
Manikandan.net25-Dec-07 22:55
Manikandan.net25-Dec-07 22:55 
Generalsecurity issue Pin
Tauseef A23-Dec-07 16:47
Tauseef A23-Dec-07 16:47 
GeneralRe: security issue Pin
Dave Kreskowiak24-Dec-07 4:37
mveDave Kreskowiak24-Dec-07 4:37 
QuestionRe: security issue Pin
Tauseef A25-Dec-07 16:08
Tauseef A25-Dec-07 16:08 
GeneralRe: security issue Pin
Dave Kreskowiak26-Dec-07 2:07
mveDave Kreskowiak26-Dec-07 2:07 
QuestionDelegate writing to another form? Pin
cstrader23223-Dec-07 11:45
cstrader23223-Dec-07 11:45 
Can I use a delegate to write to a textbox on a 2nd form from a running subthread on the first form?

For instance, this code works fine to write from the thread to Me.Textbox1. However, if I change Me.Textbox1 to Form2.Textbox1 then the delegate does not write to that textbox on Form2 (no error, just blank textbox).

Thanks!


Public Sub ThreadProcSafe()
Me.SetText("This text was set safely.")
End Sub

Private Sub SetText(ByVal [text] As String)
If Me.TextBox1.InvokeRequired Then
Dim d As New SetTextCallback(AddressOf SetText)
Me.Invoke(d, New Object() {[text]})
Else
Me.TextBox1.Text = [text]
End If
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.demoThread = New Thread(New ThreadStart(AddressOf Me.ThreadProcSafe))
Me.demoThread.Start()
'Form2.Show()
End Sub
AnswerRe: Delegate writing to another form? Pin
Paul Conrad23-Dec-07 14:00
professionalPaul Conrad23-Dec-07 14:00 
AnswerRe: Delegate writing to another form? Pin
nlarson1123-Dec-07 15:42
nlarson1123-Dec-07 15:42 
GeneralRelease an app from an appdomain Pin
cstrader23223-Dec-07 9:38
cstrader23223-Dec-07 9:38 
GeneralRe: Release an app from an appdomain Pin
Luc Pattyn23-Dec-07 13:28
sitebuilderLuc Pattyn23-Dec-07 13:28 
Generalerror to save file Pin
bapu288923-Dec-07 7:59
bapu288923-Dec-07 7:59 
GeneralRe: error to save file Pin
Paul Conrad23-Dec-07 9:42
professionalPaul Conrad23-Dec-07 9:42 
GeneralRe: error to save file Pin
Dave Kreskowiak23-Dec-07 10:24
mveDave Kreskowiak23-Dec-07 10:24 
GeneralRe: error to save file Pin
Christian Graus23-Dec-07 11:25
protectorChristian Graus23-Dec-07 11:25 
GeneralRe: error to save file Pin
Dave Kreskowiak23-Dec-07 15:26
mveDave Kreskowiak23-Dec-07 15:26 
GeneralRe: error to save file Pin
bapu288927-Dec-07 1:43
bapu288927-Dec-07 1:43 
GeneralRe: error to save file Pin
Dave Kreskowiak27-Dec-07 5:10
mveDave Kreskowiak27-Dec-07 5:10 
GeneralRe: error to save file Pin
bapu288927-Dec-07 7:26
bapu288927-Dec-07 7:26 
GeneralRe: error to save file Pin
Dave Kreskowiak28-Dec-07 19:31
mveDave Kreskowiak28-Dec-07 19:31 
GeneralRe: error to save file Pin
bapu288929-Dec-07 1:53
bapu288929-Dec-07 1:53 
GeneralRe: error to save file Pin
Dave Kreskowiak29-Dec-07 6:35
mveDave Kreskowiak29-Dec-07 6:35 
GeneralRe: error to save file Pin
bapu288929-Dec-07 8:59
bapu288929-Dec-07 8:59 
GeneralClass versus Form sharing Pin
cstrader23223-Dec-07 6:11
cstrader23223-Dec-07 6:11 

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.