Click here to Skip to main content
15,915,724 members
Home / Discussions / Visual Basic
   

Visual Basic

 
NewsRe: Pixel Shifting in Bitmap Pin
Sonhospa29-Sep-08 21:38
Sonhospa29-Sep-08 21:38 
QuestionConnections strings driving me crazy Pin
uneasyrider26-Sep-08 7:19
uneasyrider26-Sep-08 7:19 
AnswerRe: Connections strings driving me crazy Pin
Jon_Boy26-Sep-08 8:12
Jon_Boy26-Sep-08 8:12 
QuestionWindows Installer Textbox User Interface Pin
Cory Kimble26-Sep-08 7:03
Cory Kimble26-Sep-08 7:03 
AnswerRe: Windows Installer Textbox User Interface Pin
piyey26-Sep-08 10:54
piyey26-Sep-08 10:54 
QuestionLoad form count Pin
tatchung26-Sep-08 2:44
tatchung26-Sep-08 2:44 
AnswerRe: Load form count Pin
Jon_Boy26-Sep-08 3:43
Jon_Boy26-Sep-08 3:43 
AnswerRe: Load form count Pin
Dave Kreskowiak26-Sep-08 3:44
mveDave Kreskowiak26-Sep-08 3:44 
You're treating forms like a trail of breadcumbs. This is not the case. Forms create instances of other forms in a hierarchical fashion. If, say, Form1 creates an instance of Form2 to get some data, Form1 should call Form2's .ShowDialog method, not Show. This way, Form1 will know exactly when Form2 is closed and is free to grab any data it needs from it. Form2 should not care at all which form created it, nor should it care about what data it needs to pass back to the form that called it. It's not Form2's job to do any of this. Form2's job is just to get data from the user or whever, not to pass it around. Form1 should know which methods it needs to call on Form2, not the other way around.


A guide to posting questions on CodeProject[^]



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




GeneralRe: Load form count Pin
tatchung26-Sep-08 8:42
tatchung26-Sep-08 8:42 
QuestionSort in entity Pin
Member 555221926-Sep-08 2:42
Member 555221926-Sep-08 2:42 
AnswerRe: Sort in entity Pin
Dave Kreskowiak26-Sep-08 3:38
mveDave Kreskowiak26-Sep-08 3:38 
QuestionDatabase Program Pin
Gagan.2026-Sep-08 1:42
Gagan.2026-Sep-08 1:42 
AnswerRe: Database Program Pin
Dave Kreskowiak26-Sep-08 3:34
mveDave Kreskowiak26-Sep-08 3:34 
QuestionGeneral information Pin
Gagan.2026-Sep-08 1:36
Gagan.2026-Sep-08 1:36 
AnswerRe: General information Pin
Ashfield26-Sep-08 2:22
Ashfield26-Sep-08 2:22 
Questionsuggestion on my design and help with dynamic buttons with right click detection Pin
WillRain26-Sep-08 0:29
WillRain26-Sep-08 0:29 
AnswerRe: suggestion on my design and help with dynamic buttons with right click detection Pin
Smithers-Jones26-Sep-08 1:07
Smithers-Jones26-Sep-08 1:07 
GeneralRe: suggestion on my design and help with dynamic buttons with right click detection Pin
WillRain26-Sep-08 9:31
WillRain26-Sep-08 9:31 
GeneralRe: suggestion on my design and help with dynamic buttons with right click detection Pin
WillRain26-Sep-08 12:52
WillRain26-Sep-08 12:52 
QuestionLabel Display Problem Pin
pdnet25-Sep-08 23:34
pdnet25-Sep-08 23:34 
AnswerRe: Label Display Problem Pin
Johan Hakkesteegt26-Sep-08 0:30
Johan Hakkesteegt26-Sep-08 0:30 
AnswerRe: Label Display Problem Pin
Ashfield26-Sep-08 1:25
Ashfield26-Sep-08 1:25 
AnswerRe: Label Display Problem Pin
Dave Kreskowiak26-Sep-08 2:07
mveDave Kreskowiak26-Sep-08 2:07 
GeneralRe: Label Display Problem Pin
Jon_Boy26-Sep-08 3:23
Jon_Boy26-Sep-08 3:23 
AnswerRe: Label Display Problem Pin
LloydA11126-Sep-08 23:20
LloydA11126-Sep-08 23:20 

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.