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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





12305 Mar 25,2004 05:41 PM UTC Mar 26,2004 09:37 AM UTC WinForms 2
Tags: FAQ
Asked On March 25, 2004 05:41 PM UTC

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

Replied On March 25, 2004 06:19 PM UTC

( 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 09:37 AM UTC

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.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon