Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / April 2005

Tip: Looking for answers? Try searching our database.

Passing Information/address form properties - VB.NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Leo - 29 Mar 2005 00:29 GMT
I have a basic question about how do you change the information on a Form
from another Form, not a dialog.

Example:  I have a MDIform which is the startup form for the project.  I
call a child form to put in setup information which is written to the
Registry.  As a result I need to update the Text (Title) of the MDIForm and a
StatusBar Panel(0) which is also on the MDIFORM.  In VB6 this was easy.

I has tried using classes but can not seem to get it to work.  I can pass to
a new instance but not to the current instance.

Help

Leo
tobiwan_kenobi - 29 Mar 2005 02:21 GMT
You set the mdiparent of the child form to the mdi.  So, to change the title
you do this:

me.mdiparent.text = "New Title"

You can access the status bar the same way.

> I have a basic question about how do you change the information on a Form
> from another Form, not a dialog.
[quoted text clipped - 10 lines]
>
> Leo
Leo - 29 Mar 2005 17:09 GMT
Thanks for the response.  The reference to me.mdiparent.text works just fine,
but the StatusBar Control does not readily show itself.  It is part of the
controls collection and I can reference it by me.mdiparent.controls(1), but I
can not set any of the panels properties (StatusBar1.Panels(0).Text

> You set the mdiparent of the child form to the mdi.  So, to change the title
> you do this:
[quoted text clipped - 17 lines]
> >
> > Leo
tobiwan_kenobi - 04 Apr 2005 19:33 GMT
Create a property in the MDI that exposes the statusbar.  Then you can have
your way with it.

> Thanks for the response.  The reference to me.mdiparent.text works just fine,
> but the StatusBar Control does not readily show itself.  It is part of the
[quoted text clipped - 22 lines]
> > >
> > > Leo
Leo - 05 Apr 2005 00:55 GMT
Thanks.  Will do.

Leo

> Create a property in the MDI that exposes the statusbar.  Then you can have
> your way with it.
[quoted text clipped - 25 lines]
> > > >
> > > > Leo

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.