MDI forms

  • Thread starter Thread starter savile1
  • Start date Start date
S

savile1

Please help!!!

I'm creating a MDI application which will need to
pass data from the activeform to a variable of my choice.
but when i declare my "Dim frm as new form.." in my new sub
the controls are only represented in that sub. Can i make global form that will be used everytime when i call it from my MDI menu and will be reconigze as the activeform. Can of like MS excel does.


Thank you for the help.


**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
Sergi
I'm not sure that I completely understand the problem, but
it sounds like you want to be able to get at controls on a
specific form from anywhere in the MDI application. If
so, here is a solution.

In a module, place the following
Public gFrm as frmSpecial

When you load the special form, do this.

Dim frm As New frmSpecial
gFrm = frm

frm.Show()
....

Now the instance of frmSpecial and any controls on it are
accessible via gFrm variable.

Hope this helps.
Les

Get general .NET info, free code, add-ins, at
http://www.knowdotnet.com
-----Original Message-----
Please help!!!

I'm creating a MDI application which will need to
pass data from the activeform to a variable of my choice.
but when i declare my "Dim frm as new form.." in my new sub
the controls are only represented in that sub. Can i
make global form that will be used everytime when i call
it from my MDI menu and will be reconigze as the
activeform. Can of like MS excel does.
Thank you for the help.


********************************************************** ************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of
links to ASP & ASP.NET resources...
 
* "Les Smith said:
I'm not sure that I completely understand the problem, but
it sounds like you want to be able to get at controls on a
specific form from anywhere in the MDI application. If
so, here is a solution.

Just FYI: Always include a "Re:" at the beginning of the subject when
replying, some newsreaders have problems sorting the threads if this is
not done. Thank you!
 
Back
Top