Click here to Skip to main content
15,889,281 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How To AOP IN VB.NET Pin
Dave Kreskowiak19-Jul-07 3:29
mveDave Kreskowiak19-Jul-07 3:29 
QuestionProblem on Executing application path in VB6.0 Pin
Srinivas Kaparthi18-Jul-07 23:31
Srinivas Kaparthi18-Jul-07 23:31 
AnswerRe: Problem on Executing application path in VB6.0 Pin
Navneet Hegde19-Jul-07 2:38
Navneet Hegde19-Jul-07 2:38 
GeneralRe: Problem on Executing application path in VB6.0 Pin
Srinivas Kaparthi21-Jul-07 1:02
Srinivas Kaparthi21-Jul-07 1:02 
QuestionAccess form1 from form2. Pin
KOKEMO18-Jul-07 23:23
KOKEMO18-Jul-07 23:23 
AnswerRe: Access form1 from form2. Pin
Colin Angus Mackay18-Jul-07 23:39
Colin Angus Mackay18-Jul-07 23:39 
AnswerRe: Access form1 from form2. Pin
Naji El Kotob19-Jul-07 0:07
Naji El Kotob19-Jul-07 0:07 
AnswerRe: Access form1 from form2. Pin
Dave Kreskowiak19-Jul-07 3:13
mveDave Kreskowiak19-Jul-07 3:13 
This was brought up yesterday.

You do NOT modify the controls on Form1 from Form2. Form2 shouldn't know anything about Form1, nor should it care. All it should care about is the data that it's supposed to manipulate.

If you're showing Form2 using ShowDialog(), then Form1 creates an instance of Form2 and waits for Form2 to be dismissed. Form2 exposes any data that it should as public properties or as some data object. Form1, when it gets control back, looks at the data in Form2 properties or in the data object that it modified and then modifies its own controls accordingly.


A guide to posting questions on CodeProject[^]

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


GeneralRe: Access form1 from form2. Pin
Paul Conrad19-Jul-07 9:34
professionalPaul Conrad19-Jul-07 9:34 
GeneralRe: Access form1 from form2. Pin
Dave Kreskowiak19-Jul-07 15:55
mveDave Kreskowiak19-Jul-07 15:55 
JokeRe: Access form1 from form2. Pin
Paul Conrad19-Jul-07 16:02
professionalPaul Conrad19-Jul-07 16:02 
Questioneasy way to print datagrid ? Pin
Mr.Kode18-Jul-07 23:16
Mr.Kode18-Jul-07 23:16 
AnswerRe: easy way to print datagrid ? Pin
Dave Kreskowiak19-Jul-07 3:09
mveDave Kreskowiak19-Jul-07 3:09 
AnswerRe: easy way to print datagrid ? Pin
Duncan Edwards Jones19-Jul-07 4:01
professionalDuncan Edwards Jones19-Jul-07 4:01 
Questionsql statement Pin
magedhv18-Jul-07 23:13
magedhv18-Jul-07 23:13 
AnswerRe: sql statement Pin
cutequencher20-Jul-07 5:40
cutequencher20-Jul-07 5:40 
QuestionHow to copy database? Pin
help as an alias18-Jul-07 22:58
help as an alias18-Jul-07 22:58 
AnswerRe: How to copy database? Pin
Colin Angus Mackay18-Jul-07 23:33
Colin Angus Mackay18-Jul-07 23:33 
AnswerRe: How to copy database? Pin
Naji El Kotob18-Jul-07 23:53
Naji El Kotob18-Jul-07 23:53 
GeneralRe: How to copy database? Pin
help as an alias18-Jul-07 23:55
help as an alias18-Jul-07 23:55 
Questionsql statement Pin
magedhv18-Jul-07 22:39
magedhv18-Jul-07 22:39 
AnswerRe: sql statement Pin
Naji El Kotob18-Jul-07 22:58
Naji El Kotob18-Jul-07 22:58 
AnswerRe: sql statement Pin
magedhv18-Jul-07 23:03
magedhv18-Jul-07 23:03 
GeneralRe: sql statement Pin
Colin Angus Mackay18-Jul-07 23:36
Colin Angus Mackay18-Jul-07 23:36 
GeneralRe: sql statement Pin
Colin Angus Mackay18-Jul-07 23:35
Colin Angus Mackay18-Jul-07 23:35 

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.