Click here to Skip to main content
15,922,894 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Object reference not set to an instance of an object error Pin
Dave Kreskowiak19-Feb-08 8:44
mveDave Kreskowiak19-Feb-08 8:44 
GeneralRe: Object reference not set to an instance of an object error Pin
Aptiva Dave19-Feb-08 8:47
Aptiva Dave19-Feb-08 8:47 
GeneralRe: Object reference not set to an instance of an object error Pin
Dave Kreskowiak19-Feb-08 11:03
mveDave Kreskowiak19-Feb-08 11:03 
GeneralRe: Object reference not set to an instance of an object error Pin
Aptiva Dave19-Feb-08 11:09
Aptiva Dave19-Feb-08 11:09 
GeneralRe: Object reference not set to an instance of an object error Pin
cstrader23219-Feb-08 12:35
cstrader23219-Feb-08 12:35 
GeneralRe: Object reference not set to an instance of an object error Pin
Aptiva Dave19-Feb-08 17:26
Aptiva Dave19-Feb-08 17:26 
GeneralRe: Object reference not set to an instance of an object error Pin
Dave Kreskowiak19-Feb-08 14:16
mveDave Kreskowiak19-Feb-08 14:16 
QuestionModify Form1 control from BGW on Form 2? Pin
cstrader23219-Feb-08 3:28
cstrader23219-Feb-08 3:28 
I want to be able to modify a control on my mainform (Form1) from a backgroundworker on Form2. If I first open Form2 I can make it happen by calling the BGW from the button on Form2. However, I cannot call the BGW on Form2 directly from Form1. I don't see why not.

Thanks!

Public Class Form2

Private Delegate Sub SetTextBoxTextDelegate(ByVal text As String)

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.BackgroundWorker1.RunWorkerAsync()
End Sub '

Private Sub SetTextBoxText(ByVal text As String)
Form1.TextBox1.Text = text
End Sub

Private Sub BackgroundWorker1_DoWork(ByVal sender As System.Object, ByVal e As
System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork

Me.Invoke(New SetTextBoxTextDelegate(AddressOf SetTextBoxText), "Set this text")

End Sub

End Class
AnswerRe: Modify Form1 control from BGW on Form 2? Pin
cstrader23219-Feb-08 12:32
cstrader23219-Feb-08 12:32 
AnswerRe: Modify Form1 control from BGW on Form 2? Pin
Dave Kreskowiak20-Feb-08 5:10
mveDave Kreskowiak20-Feb-08 5:10 
GeneralRe: Modify Form1 control from BGW on Form 2? Pin
cstrader23220-Feb-08 5:49
cstrader23220-Feb-08 5:49 
GeneralBroadcasting audio Over LAN Pin
Paramhans Dubey19-Feb-08 2:29
professionalParamhans Dubey19-Feb-08 2:29 
GeneralRe: Broadcasting audio Over LAN Pin
Dave Kreskowiak20-Feb-08 5:04
mveDave Kreskowiak20-Feb-08 5:04 
Generalnot storing correct value in sql server from a vb.net application Pin
vb_buddy19-Feb-08 0:22
vb_buddy19-Feb-08 0:22 
GeneralRe: not storing correct value in sql server from a vb.net application Pin
Colin Angus Mackay19-Feb-08 4:40
Colin Angus Mackay19-Feb-08 4:40 
GeneralVB/SQL Question(Dave) Pin
Vimalsoft(Pty) Ltd18-Feb-08 22:32
professionalVimalsoft(Pty) Ltd18-Feb-08 22:32 
GeneralRe: VB/SQL Question(Dave) Pin
Dave Kreskowiak20-Feb-08 5:01
mveDave Kreskowiak20-Feb-08 5:01 
AnswerRe: VB/SQL Question(Dave) Pin
Vimalsoft(Pty) Ltd21-Feb-08 1:28
professionalVimalsoft(Pty) Ltd21-Feb-08 1:28 
GeneralWord content not Properly shown in RichTextbox Pin
Rupesh Kumar Swami18-Feb-08 21:28
Rupesh Kumar Swami18-Feb-08 21:28 
GeneralRe: Word content not Properly shown in RichTextbox Pin
Christian Graus18-Feb-08 22:03
protectorChristian Graus18-Feb-08 22:03 
GeneralRe: Word content not Properly shown in RichTextbox Pin
Duncan Edwards Jones19-Feb-08 0:39
professionalDuncan Edwards Jones19-Feb-08 0:39 
GeneralRe: Word content not Properly shown in RichTextbox Pin
Rupesh Kumar Swami19-Feb-08 1:32
Rupesh Kumar Swami19-Feb-08 1:32 
GeneralRe: Word content not Properly shown in RichTextbox Pin
Dave Kreskowiak19-Feb-08 3:47
mveDave Kreskowiak19-Feb-08 3:47 
QuestionDatabinding slow [modified] Pin
Gr1mR33p3r18-Feb-08 19:44
Gr1mR33p3r18-Feb-08 19:44 
GeneralRe: Databinding slow Pin
Dave Kreskowiak19-Feb-08 3:45
mveDave Kreskowiak19-Feb-08 3:45 

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.