We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

MDI & a panel wich is made unvisible ...:-(

Thread ID:

Created:

Updated:

Platform:

Replies:

12305 Mar 25,2004 12:41 PM Mar 26,2004 04:37 AM Windows Forms 2
loading
Tags: FAQ
reinier
Asked On March 25, 2004 12:41 PM

Hello everybody, I can't think that someone hasn't solve this problem....here we go: I have made a MDI-form, and several other forms. On the MDI-form I have made 2 panels, wich contains several buttons. with a klick on a button: -a form is opened -the panels are made unvisible. On the form there is also a button, wich closes the form. By closing the form, the MDI-form appears. PROBLEM: How can I make a panel (wich contains my buttons) visible, without making a new instance! The bottomline of the problem is this: The problem is that I cannot change any property of any control on the MDI, from the form wich is closing ************************************************ I tried: -make a sub on MDI, wich makes the panel visible. This sub is called from the form wich will be closed, code: dim myclass1 as frmMDI myclass1.subname..............:-( -I tried most of the events....:-( -I tried setting the width to 1 and with closing to 100 ......:-( -I tried NOT using a MDI, but then there is the problem of minimising/closing/resizing ......:-(( ========================================== = PLEASE HELP PLEASE HELP PLEASE HELP PLEASE HELP == ========================================== reinier

reinier
Replied On March 25, 2004 01:19 PM

( I will simplifie things, without changing the essance of the problem) The bottomline of the problem is this: The problem is that I cannot change any property of any control on the Parent-form, from a clild-form (named frmForm2) wich is closing I have created a Parentform, named frmMDI. On the Parent there are buttons and panels. With these buttons: -a childform (frmForm2) is opened, -buttons/panels are made invisible on the Parentform. On the Child form there is also a ''close'' button, with this close button: the child form is closed. Problem: When the closebutton is used, and the childform is CLOSING, I cannot access any of the buttons or panels or any other control, on the parent form. IN other words, I only see a darkgrey PArentform on my screen, without buttons. How can I make the buttons on the PArentform visible, without making a new instance? Does this make things clear? Regards,

Steve Graddy
Replied On March 26, 2004 04:37 AM

I access items on the MDI parent (frmMDI) form from the child (frmChild) form with the following statement within the child form: ((frmMDI)this.Parent.Parent).SomePublicProperty = false; What ever property or control you are trying to access will have to be made public.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;