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 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 
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 
Patience.

You shouldn't be updating Form1 controls from Form2 at all. Form2 would be unable to exist without an instance of Form1 if you did. This violates encapsulation and OOP principles.

Form2 should be exposing events that Form1 can subscribe to, where then, Form1 can update it's own controls without Form2 knowing anything about it.



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007




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 
Generalload controls in a tab control at runtime Pin
AAGTHosting18-Feb-08 11:39
AAGTHosting18-Feb-08 11:39 
GeneralRe: load controls in a tab control at runtime Pin
Christian Graus18-Feb-08 15:44
protectorChristian Graus18-Feb-08 15:44 

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.