Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new to coding so try and be nice :)
I have 3 forms, MDI form | Report Viewer Form | Filter Form
The MDI form opens the report form with a report of items pulled from a data table. I added an option for the user to filter the the report by various selections in the filter form.

I initially started the project with the report viewer and filter form and this functioned as expected (Values selected in the filter form would update the report viewer) I then added the MDI interface and the two forms no longer would pass the values between the filter form to the report viewer.

Your help with this would be much appreciated.

I am looking for examples of passing data between 2 child forms inside an MDI form (VB.Net)
Posted
Comments
Member 11660950 13-Jun-15 22:28pm    
So the suggested solution would be to implement a "Tabbed document Interface"?
Any other solutions?

First, get rid of the MDI crap. It's an outdated concept that newb's just abuse to death.

MDI stands for "Multiple Document Interface". It was designed for something like, for example, a multi-document Notepad where your child windows are all the same type and do the same thing, like a text editor.

From your description, there really is no good reason to use MDI.

Passing data between two child forms is no different than passing between any other forms. Without seeing the code or any description of what you're really doing, it's pretty much impossible to tell you exactly what's going wrong.
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 13-Jun-15 1:49am    
5ed.
—SA
In addition to Solution 1:

Here is the idea: who needs MDI, ever? Why torturing yourself and scaring off your users?
Do yourself a great favor: do not use MDI at all. You can do much easier to implement design without it, with much better quality. MDI is highly discouraged even by Microsoft, in fact, Microsoft dropped it out of WPF and will hardly support it. More importantly, you will scare off all your users if you use MDI. Just don't. Please see:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages,
How to Create MDI Parent Window in WPF?.

I can explain what to do instead. Please see my past answers:
How to Create MDI Parent Window in WPF?,
Question on using MDI windows in WPF,
MDIContainer giving error,
How to set child forms maximized, last childform minimized.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900