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

Visual Basic

 
AnswerRe: share and unshare folder Pin
Dave Kreskowiak30-Jun-10 18:37
mveDave Kreskowiak30-Jun-10 18:37 
GeneralRe: share and unshare folder Pin
mehrnoosh30-Jun-10 21:54
mehrnoosh30-Jun-10 21:54 
GeneralRe: share and unshare folder Pin
Alan N30-Jun-10 22:32
Alan N30-Jun-10 22:32 
GeneralRe: share and unshare folder Pin
Dave Kreskowiak1-Jul-10 2:16
mveDave Kreskowiak1-Jul-10 2:16 
QuestionHow can I detect child form close action in VB.NET 2005 Pin
Andraw Tang30-Jun-10 9:19
Andraw Tang30-Jun-10 9:19 
AnswerRe: How can I detect child form close action in VB.NET 2005 Pin
Dave Kreskowiak30-Jun-10 9:31
mveDave Kreskowiak30-Jun-10 9:31 
GeneralRe: How can I detect child form close action in VB.NET 2005 Pin
Andraw Tang30-Jun-10 9:40
Andraw Tang30-Jun-10 9:40 
GeneralRe: How can I detect child form close action in VB.NET 2005 Pin
Dave Kreskowiak30-Jun-10 12:39
mveDave Kreskowiak30-Jun-10 12:39 
Andraw Tang wrote:
Do you think it is necessary to create a class scope reference to child form?


Generally, no. If your application, data model design, form code is written completely encapsulating what they are responsible for, then you normally wouldn't need a class-level variable holding a reference at all and the problem your looking at wouldn't exist at all.

Andraw Tang wrote:
or just create a local referece when user click tree node, add set it as MDI child and show it? which way is better?


This is what i just told you in the last post.


Andraw Tang wrote:
If we use local reference and user click tree node 1, the first child form is created and shown, how about if user click tree node 1 again?


I'd probably code it so that I'm searching the MdiChildren for the existance of a form that is working on the node in question. Of course, that would mean that the child forms are exposing a property that shows which node it's working on.


In all, I have no idea what your application is doing nor it's requirements, but you normally don't see an MDI environment hanging off a treeview. Normally, you'd only work on one item in the treeview at a time.

A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




GeneralRe: How can I detect child form close action in VB.NET 2005 Pin
Andraw Tang1-Jul-10 3:32
Andraw Tang1-Jul-10 3:32 
GeneralRe: How can I detect child form close action in VB.NET 2005 Pin
Dave Kreskowiak1-Jul-10 3:42
mveDave Kreskowiak1-Jul-10 3:42 
GeneralRe: How can I detect child form close action in VB.NET 2005 Pin
Andraw Tang1-Jul-10 3:59
Andraw Tang1-Jul-10 3:59 
GeneralRe: How can I detect child form close action in VB.NET 2005 Pin
Andraw Tang1-Jul-10 4:03
Andraw Tang1-Jul-10 4:03 
AnswerRe: How can I detect child form close action in VB.NET 2005 Pin
William Winner30-Jun-10 9:38
William Winner30-Jun-10 9:38 
GeneralRe: How can I detect child form close action in VB.NET 2005 Pin
Andraw Tang30-Jun-10 10:11
Andraw Tang30-Jun-10 10:11 
AnswerRe: How can I detect child form close action in VB.NET 2005 [modified] Pin
Аslam Iqbal13-Jul-10 5:55
professionalАslam Iqbal13-Jul-10 5:55 
QuestionCommunication via Serial Port on PPC Pin
Dominick Marciano29-Jun-10 15:13
professionalDominick Marciano29-Jun-10 15:13 
AnswerRe: Communication via Serial Port on PPC Pin
tiggerc1-Jul-10 5:04
tiggerc1-Jul-10 5:04 
GeneralRe: Communication via Serial Port on PPC Pin
Dominick Marciano1-Jul-10 13:11
professionalDominick Marciano1-Jul-10 13:11 
GeneralRe: Communication via Serial Port on PPC Pin
tiggerc2-Jul-10 3:57
tiggerc2-Jul-10 3:57 
QuestionHow can I trace an AddIn's startup error? Pin
Sonhospa29-Jun-10 13:01
Sonhospa29-Jun-10 13:01 
AnswerRe: How can I trace an AddIn's startup error? Pin
Luc Pattyn29-Jun-10 13:15
sitebuilderLuc Pattyn29-Jun-10 13:15 
NewsRe: How can I trace an AddIn's startup error? Pin
Sonhospa30-Jun-10 0:01
Sonhospa30-Jun-10 0:01 
GeneralRe: How can I trace an AddIn's startup error? Pin
Dave Kreskowiak30-Jun-10 1:35
mveDave Kreskowiak30-Jun-10 1:35 
GeneralRe: How can I trace an AddIn's startup error? Pin
Sonhospa30-Jun-10 3:07
Sonhospa30-Jun-10 3:07 
GeneralRe: How can I trace an AddIn's startup error? Pin
Dave Kreskowiak30-Jun-10 3:27
mveDave Kreskowiak30-Jun-10 3:27 

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.